none
Request format is unrecognized for URL unexpectedly ending in '/MethodName'. RRS feed

  • Question

  • Hi,

    I have a web service that contains a method to return a string. The web service is working well locally. When i deploy it in a Windows 2008 R2 server i am getting the following error.

    System.InvalidOperationException: Request format is unrecognized for URL unexpectedly ending in '/<var>Method Name</var>'.
    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.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

    -------------------------------------------------------------------------------------

    I tried the web.config settings given in the following thread.

    http://support.microsoft.com/default.aspx?scid=kb;en-us;819267

    Its doesn't solved the problem.

    Strangely the problem happens in two windows servers and in one server the web service gives the expected result.

    Initially it also gives the following error, "Cannot process request because the process (4876) has exited " and when i refresh the page again i am getting the error i mentioned in the top.

    I also come across the following KB article http://support.microsoft.com/kb/2803754

    But it looks like for .Net 4.5.

    Can anyone have some idea to solve this problem?

    Best Regards,

     Kathir.K


    Kathir

    Thursday, May 30, 2013 6:56 AM

Answers

  • Hi,

    Please try enable tracing for your service to get the actual issue.

    http://msdn.microsoft.com/en-us/library/ms733025.aspx

    >>Initially it also gives the following error, "Cannot process request because the process (4876) has exited " and when i refresh the page again i am getting the error i mentioned in the top.

    It seems that the process is killed before make a request. Please check HasExited  property for the process.

    >>Strangely the problem happens in two windows servers and in one server the web service gives the expected result.

    Do you mean it works on one server but not on another server? Do you check and compare the configurations for these two servers?

    Best Regards.


    Haixia
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Friday, May 31, 2013 5:36 AM
    Moderator