asp.net - A route named 'MS_attributerouteWebApi' is already in the route collection. While I can't see it -


i'm using signalr , web api, keep getting error:

an exception of type 'system.argumentexception' occurred in system.web.dll not handled in user code

additional information: route named 'ms_attributeroutewebapi' in route collection. route names must unique.

code app_start > webapiconfig.cs:

public static void register(httpconfiguration config) {     // web api configuration , services     config.enablecors();      // web api routes     config.maphttpattributeroutes();      config.routes.maphttproute(         name: "defaultapi",         routetemplate: "api/{controller}/{action}"     ); } 

but can't find use also. know problem and/or how fix it?


Comments