发布IIS上后调用时提示:测试窗体只能用于来自本地计算机的请求
在<system.web>节点中配置如下:
1 <webServices> 2 <protocols> 3 <add name="HttpSoap"/> 4 <add name="HttpPost"/> 5 <add name="HttpGet"/> 6 <add name="Documentation"/> 7 </protocols> 8 </webServices>
修改webservice的最大传输长度
<configuration> <connectionStrings> <add name="ConStr" connectionString="$(ReplacableToken_ConStr-Web.config Connection String_0)"/> </connectionStrings> <system.web> <compilation debug="true" targetFramework="4.0" /> <httpRuntime maxRequestLength="2147483647" /> </system.web> </configuration>