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>
That was an inspiring post,
This is great ASP.Net Web Service advice,
Keep up the good work
Thanks for the solution. It worked for me too.
Thanks!
This only solved the problem for some of the functions. Any function with an XML input still has the message. All others work perfectly. 🙁
thanks. solved my issue.
i want just source code. plz provide it to me..its urgent
Source code?
this helped me a lot thanks.
I am facing same issue with webservice. So i tried solution given here but still issue persist.
Any idea how to get it work
Can you email us more of an example of your issue?
Terima kasih banyak.. (Bahasa Indonesia),
it’s mean Thank you very much..
thanks for ur help…good job 🙂
Thanks a lot…
In my case, I have 2 asmx files in a csproj. In one asmx file, I am able to Invoke Web Methods but getting the same error (The test form is only available for requests from the local machine.) for other file.
Can you please let me know whether any other setting needs to be changed?
Hmmm.. In my project I have two asmx files as well. But have no issues.
Thanks For Solution. It Works.