Saturday, November 30, 2013

Request format is unrecognized for URL unexpectedly ending in 'xxxxxxxxxxx'

Leave a Comment
Server error in application "Request format is unrecognized for URL unexpectedly ending in 'xxxxxxxxxxx'" (as shown in diagram below) is caused when you try to run web service in asp.net online and try to invoke function created in webservice.
In previous post I explained about following http errors:
Http Error 503-Service is Unavailable and HTTP Error 500.19- Internal Server Error

How to Solve Error 'Request format is unrecognized for URL unexpectedly ending in 'xxxxxxxxxxx':

In web.config add the following line of code inside <system.web></<system.web>:
       <webServices>
                     <protocols>
                           <add name="HttpGet"/>
                           <add name="HttpPost"/>
                     </protocols>
              </webServices>
Error snapshot:

0 comments:

Post a Comment