Tuesday, April 29, 2008

ASP.NET 2.0 Web service problem

Today I've tried to publish my web service on aspspider.net. But I've faced the problem that I can't run the webservice method with following message: "The test form is only available for requests from the local machine". I've read some information and found out that you need to edit config file of your application and add there the following declaration to specify that an ASP.NET Web service can use HttpGet and HttpPost protocols to receive request data sent from a client and return response data.

<add name="HttpGet"/>
<add name="HttpPost"/>

Now it works perfect.

No comments: