Invalid webresource request error in asp.net

0

I am newer to ASP.NET. I have crated one small app in asp.net(dotnet framework 4) with c# and hosted on one server. I am getting following error randomly and don't know the reason or solution for the same. I have also searched for this but not found exact reason or solution.

I have added Global.asax and handled its Application_Error event to catch the error as follows:

void Application_Error(object sender, EventArgs e)
{
    // Code that runs when an unhandled error occurs
    Exception exception = Server.GetLastError();

    if (exception != null)
        CommonFunctions.WriteLogToFile("Application_Error", exception.ToString() + "|" +  Request.RawUrl);

    // Clear the error from the server
    Server.ClearError();
}

Following is the error log I observed on the server:

2018-08-28 05:31:10|Application_Error | System.Web.HttpException (0x80004005): This is an invalid webresource request. at System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)|/WebResource.axd

Please help for the above problem.

c#
asp.net
webforms
asked on Stack Overflow Aug 29, 2018 by Amol • edited Jul 8, 2019 by IrishChieftain

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0