Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS2013 Browser Link "The controller for path '/9ac086a69364466a841e03e001f946fd/arterySignalR/ping' could not be found."

Since updating to VS2013, we receive this error when running our (MCV4) web app:

The controller for path '/9ac086a69364466a841e03e001f946fd/arterySignalR/ping' could not be found. 

I know that it relates to browser link although i'm not sure what we need to do to make it work correctly. Is there some configuration change we need to make to support this new feature?

like image 813
Fatal Avatar asked Oct 21 '13 01:10

Fatal


2 Answers

I disabled browser link. Second #4 at this link.

http://blogs.msdn.com/b/webdev/archive/2013/06/28/browser-link-feature-in-visual-studio-preview-2013.aspx

like image 193
sanbornc Avatar answered Oct 22 '22 02:10

sanbornc


If you would like the benefit of Browser Link but don't want the missing controller path exceptions, you can add an ignore regex to your route collection. This is what I did:

public static void RegisterRoutes(RouteCollection routes) {     routes.IgnoreRoute("{resource}.axd/{*pathInfo}");  #if DEBUG     routes.IgnoreRoute("{*browserlink}", new { browserlink = @".*/arterySignalR/ping" }); #endif      //... } 

The regex technique is courtesy of this Phil Haack post.

like image 28
Todd Avatar answered Oct 22 '22 03:10

Todd