Archive

Archive for the ‘Uncategorized’ Category

WebService: Request format is unrecognized for URL unexpectedly ending in /myMethodName

November 15, 2012 Leave a comment

When consuming a WebService using VBScript in an HTML file, I got the following error:

Request format is unrecognized for URL unexpectedly ending inĀ /myMethodName

Add the following to the web.config of the WebService Virtual Directory since GET and POST are disabled by default in ASP.NET 2.0 and greater:

<configuration>
    <system.web>
    <webServices>
        <protocols>
            <add name="HttpGet"/>
            <add name="HttpPost"/>
        </protocols>
    </webServices>
    </system.web>
</configuration>

Also see:
http://support.microsoft.com/default.aspx?scid=kb;en-us;819267 
or
http://aspadvice.com/blogs/ssmith/archive/2007/09/04/FIX-Request-format-is-unrecognized-for-URL-unexpectedly-ending-in.aspx

Advertisements
Categories: Uncategorized