Sunday 20 May 2012

"The test form is only available for requests from the local machine"

After creation of the Web Service to fetch the data either from SharePoint List / Document library, and then deploy the solution on a new port under IIS. So when you access the site in you local machine using either IP address or server name (depends upon the exposed port), you may face "The test form is only available for requests from the local machine" error message.

The solution for this error is as bellow:

You can change that behavior if you add following code to the <system.web> section in web.config file,
 
<configuration>
<system.web>
<webServices>
<protocols>
                        <add name="HttpGet"/>
                        <add name="HttpPost"/>
                  </protocols>
</webServices>
</system.web>
</configuration> 

No comments:

Post a Comment