Wednesday, April 3, 2013

Request format is unrecognized for URL unexpectedly ending in

This error occurred to me when I try to call web service (asmx) from SharePoint provider hosted app. asmx is written to retrieve some list data from SharePoint app host web.

I found that this error occurs because of missing configuration in the web.config.

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

Post a Comment