Engage on Facebook Engage on Twitter Engage on LinkedIn Engage on GitHub

Deploying ASP.NET 2.0 web services with AJAX

By Henry Kenuam
Here's an interesting thing we discovered when deploying an ASP.Net 2.0 site using AJAX calls (using HTTP POST).   In order to enable HTTP POST's for your web service you have to modify the web.config file to add the following:

<WEBSERVICES>

<PROTOCOLS>

<ADD name="HttpPost" />

</PROTOCOLS>

</WEBSERVICES>


(NOTE: if you are using SOAP or GET calls there are add parameters for those as well  ( ).

I don't recall having to make these changes for .Net 1.1.  Also, it's easy to get tricked here because it works in development environments.
Check out our free guide, "Six Issues to Avoid When Upgrading to DNN 8" Download