Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SignalR errors appearing in ELMAH when not using SignalR

I am getting errors relating to SignalR appearing in ELMAH. I am not using SignalR and I am running on Localhost. The solution is a MVC5 internet app. What is the cause of this and how can I stop this ?

The controller for path '/signalr/negotiate' was not found or does not implement IController.

System.Web.HttpException The controller for path '/signalr/negotiate' was not found or does not implement IController.

System.Web.HttpException (0x80004005): The controller for path '/signalr/negotiate' was not found or does not implement IController. at System.Web.Mvc.DefaultControllerFactory.GetControllerInstance(RequestContext requestContext, Type controllerType) at System.Web.Mvc.DefaultControllerFactory.CreateController(RequestContext requestContext, String controllerName) at System.Web.Mvc.MvcHandler.ProcessRequestInit(HttpContextBase httpContext, IController& controller, IControllerFactory& factory) at System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContextBase httpContext, AsyncCallback callback, Object state) at System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContext httpContext, AsyncCallback callback, Object state) at System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

like image 374
nVentimiglia Avatar asked Mar 21 '23 16:03

nVentimiglia


1 Answers

I resolved this, without disabling Browser Link, by implementing the following in my Web.config:

<elmah>
    <errorFilter>
        <test>
            <jscript>
                <expression>
                    <![CDATA[
                    // @assembly mscorlib
                    // @assembly System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
                    // @import System.IO
                    // @import System.Web

                    $.Context.Request.UserAgent.match('/*+/arterySignalR/ping')                      
                    ]]>
                </expression>
            </jscript>
        </test>
    </errorFilter>
</elmah>
like image 113
Chris Schiffhauer Avatar answered Apr 02 '23 12:04

Chris Schiffhauer