Request format is unrecognized for URL unexpectedly ending in

Recently I got this error when I call the asmx from the ajax. The fiddler gives the below error.

Request format is unrecognized for URL unexpectedly ending in "my webmethod name"

Add the below configuration in your web.config file.


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

No comments:

Post a Comment