测试窗体只能用于来自本地计算机的请求 [英] The test form is only available for requests from the local machine

查看:88
本文介绍了测试窗体只能用于来自本地计算机的请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么说我的一些网络服务,我得到的测试形式,所以我可以看到生成的XML数据,但对于其他网络服务的,我得到一个消息说测试窗体只能用于来自本地计算机的请求。

Why is it that for some of my web-services, I get test forms so I can see the generated xml data, but for other web-services, I get a message saying The test form is only available for requests from the local machine.?

这两次,我连接到​​从客户端浏览器和所有的网络服务的网络服务的URL是用C#创建的.NET 3.5。

Both times, I am connecting to the URL of the web-service from a client side browser and all web-services are created with C#, .NET-3.5.

推荐答案

我用Google搜索<一个href="https://www.google.com/search?q=The%20test%20form%20is%20only%20available%20for%20requests%20from%20the%20local%20machine.">"The测试窗体只能用于来自本地计算机的请求。

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

有许多成果,达成的共识是将这些节点添加到Web服务的web.config文件。我还没有尝试这种解决方案,但你可以检查,看看是否能显示测试形式的网络服务远程有这有在web.config这些节点。或者,你可以将它添加到Web服务,让这条消息,看看测试窗体启动远程显现出来。

There were many results, and the consensus is to add these nodes to the web.config of the web service. I haven't tried this solution yet, but you can check to see if your web services that shows the test form remotely has this that have these nodes in the web.config. Or, you can add it to the web services that give this message and see if the test form starts appearing remotely.

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

下面是一些搜索结果

  • StackOverflow: The test form is only available for requests from the local machine.
  • GeeksWithBlogs: "The test form is only available for requests from the local machine"
  • Microsoft support: INFO: HTTP GET and HTTP POST Are Disabled by Default

这篇关于测试窗体只能用于来自本地计算机的请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆