XSLT存档  

不及格的程序员-八神

 查看分类:  ASP.NET XML/XSLT JavaScripT   我的MSN空间Blog

The test form is only available for requests from the local machine

使用浏览器测试Web服务时出现提示“The test form is only available for requests from the local machine.”的解决办法


在Web服务项目中的Web.config文件中添加如下配置即可:

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

<?xml version="1.0"?>
<configuration>
  <appSettings>
    <add key="dysoft.Data.DBConnString:Conn" value="201 122 94 101 169 97 9 179 205 184 38 60 61 187 109 81 132 94 38 110 54 138 12 173 155 233 98 72 90 12 201 152 142 7 29 73 39 130 41 49 14 118 196 164 113 164 153 213 184 11 239 183 139 213 38 2 1 209 78 95 136 85 121 165 56 49 76 247 175 116 225 73 33 155 191 14 0 232 229 202 99 53 181 71 178 10 54 21 21 113 238 238 73 47 12 193" />
    <add key="dysoft.Data.DBConnString:Key" value="C0A8537C4B4F111B654B257179E38027310DFB9EEC7D77EEEFA144BE769CBCA3" />
    <add key="dysoft.Data.DBConnString:PoolString" value="min pool size=100;max pool size=2000;" />
    <add key="strSetConnPwd" value="dyempdyens" />
  </appSettings>
  <system.web>
    <customErrors mode="Off" />
    <compilation debug="true" targetFramework="4.0" />
    <webServices>
      <protocols>
        <add name="HttpSoap" />
        <add name="HttpPost" />
        <add name="HttpGet" />
        <add name="HttpPostLocalhost" />
      </protocols>
    </webServices>
  </system.web>
  <system.webServer>
    <modules runAllManagedModulesForAllRequests="true" />
    <defaultDocument>
      <files>
        <remove value="Login.aspx" />
        <remove value="Default.aspx" />
        <remove value="Index.aspx" />
        <add value="BarcodeDeCodeWebService.asmx" />
      </files>
    </defaultDocument>
  </system.webServer>

</configuration>

 

posted on 2022-09-16 16:46  不及格的程序员-八神  阅读(160)  评论(0编辑  收藏  举报