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

简介:

测试webservice的时候,如果出现这个错误:"The test form is only available for requests from the local machine"

在web.config中加入以下配置,就可以解决问题。

复制代码
< system.web >
    
< webServices >
        
< protocols >
          
< add name = " HttpGet " />
          
< add name = " HttpPost " />
        
</ protocols >
    
</ webServices >
</ system.web >
复制代码
原因:
在.NET Framework v1.0中,可以通过远程访问和测试一个web service,但在v1.1下,出于安全问题,这个远程调用被禁止了(不过还是可以在本地调用)。所以出现这个错误
The test form is only available for requests from the local machine


   本文转自loose_went博客园博客,原文链接: http://www.cnblogs.com/michaelxu/archive/2009/06/22/1508114.html ,如需转载请自行联系原作者
相关文章
|
Java
Appium问题解决方案(8)- selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: Could not sign with default certificate.
Appium问题解决方案(8)- selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: Could not sign with default certificate.
1136 0
Appium问题解决方案(8)- selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: Could not sign with default certificate.
|
6月前
|
小程序
Failed to load local image resource Xx the server responded with a status of of 500 (HTTP/1.1 500)
Failed to load local image resource Xx the server responded with a status of of 500 (HTTP/1.1 500)
161 4
|
7月前
|
Java 应用服务中间件
Tomcat 报错:The origin server did not find a current representation for the target resource
Tomcat 报错:The origin server did not find a current representation for the target resource
164 1
DevTools failed to load source map: Could not load content for…System error: net::ERR_FILE_NOT_FOUN
DevTools failed to load source map: Could not load content for…System error: net::ERR_FILE_NOT_FOUN
|
Java
HTTP Status 500 - Unable to compile class for JSP:Duplicate local variable xxx
jsp页面中使用了: ,由于一个页面中引用的多个jsp页面中都包含该语句,那么就会出现以下错误: HTTP Status 500 - Unable to compile class for JSP:Duplicate local variable xxx 详细错误信息如下图...
1155 0
|
Java
HTTP Status 500 - Unable to compile class for JSP:Syntax error on token "=", @ expected
版权声明:本文为 testcs_dn(微wx笑) 原创文章,非商用自由转载-保持署名-注明出处,谢谢。 https://blog.csdn.net/testcs_dn/article/details/43706309 jsp页面中使用取静态字段的值,报HTTP Status 500 - Unable to compile class for JSP:Syntax error on token “=”, @ expected错误。
792 0