webService在本地调用没有问题,但是当发布后,远程访问出现错误,也就是类似于 Server Error in '/' Application. 这种错误,上网搜索了一下,看到一个解决方法,试了一下,果然可以,虽然不知道啥意思,但是希望能帮忙解决问题。

原来web.config里面默认Post设置是不允许远程调用webservice,需要配置一下就可以了。 
如果想在远程可以正常调用,需要修改web.config,在system.web节下面加上下面一段话即可 
<webServices > 
<protocols > 
<add name="HttpSoap"/> 
<add name="HttpPost"/> 
<add name="HttpGet"/> 
<add name="Documentation"/> 
</protocols> 
</webServices>

 

(这个人,真是牛人(*^__^*) 嘻嘻……)

相关文章:

  • 2021-12-12
  • 2022-12-23
  • 2022-12-23
  • 2021-12-19
  • 2022-01-07
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-08-02
  • 2021-07-14
  • 2022-12-23
  • 2022-12-23
  • 2022-01-20
相关资源
相似解决方案