Click here to Skip to main content
15,888,351 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello Everyone,
I trying to work with web service access in JavaScript. I create a webservice(c#) in my local machine & access through javascript it working fine but when i try to access it through remotely webservice then problem occured. First the remotely webservice give this message when we try to access in browser url
"The test form is only available for requests from the local machine." .

Second when i access remote service through javascript then it give me this message

"An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine"

"Even my local webservice provide Invoke button when i access webservice direct at browser url but remote webserice provide nothing"

Please help me what i am doing wrong & what i have to do to get rid from this problem

"Please pardon from my english"


With Regards,

Raghav Sharma
Posted

1 solution

You can enable the test form in you web.config:
XML
<webServices>
   <protocols>
     <add name="HttpGet"/>
     <add name="HttpPost"/>
   </protocols>
 </webServices>


It's disabled by default for security reasons.
 
Share this answer
 
Comments
Sandeep Mewara 6-Feb-11 10:54am    
Comment from OP:
Hi Philip,

First of all thanks for reply. i already try this but no success. The remote webservice is not in local machine its is in some other ip. so this is not working

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900