[Question] What is the root cause of Event Code: 3005 HttpException Request format is unrecognized.

homerm 80 Reputation points
2024-03-29T05:34:17.5133333+00:00

I would like to learn and understand more about the error (HTTP Error 503. The service is unavailable) that I am getting when attempting to access the URL. When I checked my IIS, the application was in a Stop state.

Did it crash or something? See below logs from the event viewer.

Event code: 3005 
Event message: An unhandled exception has occurred. 
Event time: 3/28/2024 2:40:25 AM 
Event time (UTC): 3/28/2024 6:40:25 AM 
Event ID: 3bac15d3b59e4d96832ba7fa5e8a4198 
Event sequence: 349 
Event occurrence: 2 
Event detail code: 0 
 
Application information: 
    Application domain: /LM/W3SVC/1/ROOT/BHV-1-133560684153163313
    Trust level: Full 
    Application Virtual Path: /BHV 
    Application Path: C:\Program Files\homerm\live\Web\ 
    Machine name: XXXXXXXXXXXXX
 
Process information: 
    Process ID: 16840 
    Process name: w3wp.exe 
    Account name: XXXXXXXXXXXXX 
 
Exception information: 
    Exception type: HttpException 
    Exception message: Request format is unrecognized.
   at System.Web.Services.Protocols.WebServiceHandlerFactory.CoreGetHandler(Type type, HttpContext context, HttpRequest request, HttpResponse response)
   at System.Web.Services.Protocols.WebServiceHandlerFactory.GetHandler(HttpContext context, String verb, String url, String filePath)
   at System.Web.Script.Services.ScriptHandlerFactory.GetHandler(HttpContext context, String requestType, String url, String pathTranslated)
   at System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

 
Request information: 
    Request URL: https://BHV.dlt.com:443/BHV/vsWS.asmx 
    Request path: /BHV/vsWS.asmx 
    User host address: xx.xx.11.xx 
    User:  
    Is authenticated: False 
    Authentication Type:  
    Thread account name: XXXXXXXXXXXXX 
 
Thread information: 
    Thread ID: 88 
    Thread account name: XXXXXXXXXXXXX
    Is impersonating: False 
    Stack trace:    at System.Web.Services.Protocols.WebServiceHandlerFactory.CoreGetHandler(Type type, HttpContext context, HttpRequest request, HttpResponse response)
   at System.Web.Services.Protocols.WebServiceHandlerFactory.GetHandler(HttpContext context, String verb, String url, String filePath)
   at System.Web.Script.Services.ScriptHandlerFactory.GetHandler(HttpContext context, String requestType, String url, String pathTranslated)
   at System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
 
 
Custom event details: 

Internet Information Services
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,166 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,255 questions
{count} votes

Accepted answer
  1. Bruce (SqlWork.com) 56,026 Reputation points
    2024-03-29T18:01:17.0333333+00:00

    the error will depend on the coding of the application and framework used. looking at your logs, you called an .asmx page, which is typically a web service. it returned an error rather than a valid response. looking at the exception, it is saying the request body was not a valid format.

    because part of the request body is used to pick the action, as it can not determine the action it return 503 instead of a 500.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Q&A Assist
    2024-03-29T05:34:17.5633333+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    The root cause of the Event Code 3005 HttpException Request format is unrecognized error is that the request format is not recognized by the server. This error occurs within the app's code during startup or while creating a response. The response may contain no content, or the response may appear as a 500 Internal Server Error in the browser. The Application Event Log usually states that the app started normally. From the server's perspective, that's correct. The app did start, but it can't generate a valid response. Run the app at a command prompt on the server or enable the ASP.NET Core Module stdout log to troubleshoot the problem.


    References:

    0 comments No comments