Skip to content

Request format is unrecognized for URL unexpectedly ending in …

January 31, 2014

If you receive the following error when calling a web service you created as followsRequest format is unrecognized for URL unexpectedly ending in” , the likely reason is that you have configured the web service to work in AJAX/JSON but not for the traditional http post and get, so to amend this, you simply add the following tags in the web.config file.

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

From → Uncategorized

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: