fbpx
16

ASP.Net Web Service: The test form is only available for requests from the local machine.

You create a very cool ASP.Net Web Service on your local machine. You are ready to show the world, you deploy it on the server. Then you get the following message "The test form is only available for requests from the local machine. " Here is what you need to fix that.

Open the web config file and add the following, you will be able to access the form outside of the localhost:

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

Click Here to Leave a Comment Below 16 comments