webservice Server Error in '/' Application 本地调试没错,服务器上就错误的解决方法
2012-11-26 00:47
411 查看
或许有些朋友在调试webservice 的时候会出现这样的情况,本地 localhost 调试是没错误的。但是放到服务器上面,换上域名就提示 Server Error in '/' Application 错误,
这时候,我们只要在web.config 配置文件里面的<system.web>节点里面加上以下的这个几句话就可以了。
<webServices>
<protocols>
<add name="HttpGet"/>
<add name="HttpPost"/>
</protocols>
</webServices>
这时候,我们只要在web.config 配置文件里面的<system.web>节点里面加上以下的这个几句话就可以了。
<webServices>
<protocols>
<add name="HttpGet"/>
<add name="HttpPost"/>
</protocols>
</webServices>
相关文章推荐
- SQL2008无法连接到.\SQLEXPRESS,用户'sa'登录失败(错误18456)图文解决方法 已成功与服务器建立连接,但是在登录过程中发生错误。 (provider: 共享内存提供程序, er
- 微信支付证书问题C#使用Https访问加载SSL证书本地调试正常服务器IIS内部错误解决方法
- 无法在web服务器上启动调试, Server Application Error......错误解决方法
- NDK的错误ERROR: The device does not support the application's targetted CPU ABIs!解决方法
- coreseek(sphinx)错误:WARNING: attribute 'id' not found - IGNORING原因及解决方法
- MYsql:Plugin 'FEDERATED' is disabled.或1067错误 启动错误与“服务 mysql 意外停止”解决方法
- Xcode真机调试中"There was an internal API error"错误解决方法;
- 完美解决IIS 服务器无法加载应用程序 '/LM/W3SVC/1/ROOT'。错误是 '没有注册类别
- ValueError: ('No requirements found', '# Horizon Core Requirements')的调试解决方法
- Active Server Pages 错误'ASP 0201' 的解决方法
- 调用Application.Quit()方法时报"This operation cannot be performed in this event handler."错误的一种解决方法
- 编译VTK6.1.0在vtkGUISupportQt-6.1.dll项上出现错误'GLdouble' : redefinition的解决方法
- DB2 "检测到 DB2 管理服务器通信错误" 的解决方法
- Microsoft VBScript 运行时错误 错误 '800a0046' 没有权限 解决方法
- Cannot open include file: 'iostream.h'错误解决方法
- “/”应用程序中的服务器错误和Server Error in ''/'' Application.的终极解决方法
- [ios]The identity &#39;iPhone Developer&#39; doesn&#39;t match any valid, non-expired certifi错误解决方法
- 关于Ajax 错误:'sys'未定义解决方法.
- 解决VC提示 syntax error : identifier 'LONG_PTR'错误的方法
- zenmap: couldn't load font "宋体 Not-Rotated 10"错误解决方法