arterySignalIr / Ping - What is causing this error?

2

The project MVC in C# here of the company has a very bizarre bug, to say the least. From time to time a random error pops up:

The controller for path ... arterySignalIr / Ping was not found or does not implement IController, see image below:

Currently in the module I'm working on it pops up briefly randomly every 3 minutes or so. The strange thing is that it does not crash the session or break anything, it just crashes error.

My question is if you guys know what the mistake is?

Is it a DLL that causes this? What?

How to fix this?

    
asked by anonymous 12.01.2016 / 12:58

1 answer

6

This error happens only in 'Debug' mode because of the Browser Link feature of Visual Studio, you can choose the following options to solve your problem:

Disable Browser Link: (Recommended if you do not use the feature) To do this simply add the following key in the appSettings block of your webconfig

<add key="vs:EnableBrowserLink" value="false" />

If you really want to do this but do not want to suffer with the missing controller exceptions, simply ignore the Browser Link routes by editing your route settings as shown below:

public static void RegisterRoutes(RouteCollection routes)
{
    routes.IgnoreRoute("{resource}.axd/{*pathInfo}");

#if DEBUG
    routes.IgnoreRoute("{*browserlink}", new { browserlink = @".*/arterySignalR/ping" });
    routes.IgnoreRoute("{*browserlink}", new { browserlink = @".*__browserLink.*" });
#endif

    //...Outras rotas
}

Note: As the ignore block is inside a debug pragma this treatment will only occur when you are debugging that is exactly when the Browser Link feature is active.

    
12.01.2016 / 14:50