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>
南来地,北往的,上班的,下岗的,走过路过不要错过!
======================个性签名=====================
之前认为Apple 的iOS 设计的要比 Android 稳定,我错了吗?
下载的许多客户端程序/游戏程序,经常会Crash,是程序写的不好(内存泄漏?刚启动也会吗?)还是iOS本身的不稳定!!!
如果在Android手机中可以简单联接到ddms,就可以查看系统log,很容易看到程序为什么出错,在iPhone中如何得知呢?试试Organizer吧,分析一下Device logs,也许有用.