title: How do I fix a "Request format is unrecognized for URL..." error in a web service running in IIS?
body: <p>I am get the following error while running web service in IIS:</p>
  
  <blockquote>
    <p>Server Error in '/Inbox Sevice'
    Application. Request format is
    unrecognized for URL unexpectedly
    ending in '/GetMailsInfo'.
    Description: An unhandled exception
    occurred during the execution of the
    current web request. Please review the
    stack trace for more information about
    the error and where it originated in
    the code.</p>
    
    <p>Exception Details:
    System.InvalidOperationException:
    Request format is unrecognized for URL
    unexpectedly ending in
    '/GetMailsInfo'.</p>
    
    <p>Source Error:</p>
    
    <p>An unhandled exception was generated
    during the execution of the current
    web request. Information regarding the
    origin and location of the exception
    can be identified using the exception
    stack trace below.</p>
    
    <p>Stack Trace:</p>
    
    <p>[InvalidOperationException: Request
    format is unrecognized for URL
    unexpectedly ending in
    '/GetMailsInfo'.]<br>
    System.Web.Services.Protocols.WebServiceHandlerFactory.CoreGetHandler(Type
    type, HttpContext context, HttpRequest
    request, HttpResponse response)
    +490982    System.Web.Services.Protocols.WebServiceHandlerFactory.GetHandler(HttpContext
    context, String verb, String url,
    String filePath) +104<br>
    System.Web.Script.Services.ScriptHandlerFactory.GetHandler(HttpContext
    context, String requestType, String
    url, String pathTranslated) +127<br>
    System.Web.HttpApplication.MapHttpHandler(HttpContext
    context, String requestType,
    VirtualPath path, String
    pathTranslated, Boolean useAppConfig)
    +175    System.Web.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
    +120    System.Web.HttpApplication.ExecuteStep(IExecutionStep
    step, Boolean&amp; completedSynchronously)
    +155</p>
    
    <p>Version Information: Microsoft .NET
    Framework Version:2.0.50727.42;
    ASP.NET Version:2.0.50727.42</p>
  </blockquote>
  
  <p>Does anyone know why I am seeing this error and if there is any way to fix it?</p>