[问题解决](Windows Server 2012 R2)WCF, Web Service 部署在(Windows Server 2012 R2)IIS上,调用时返回FaultException,在浏览器上点击 Web Service的Hello方法,显示500错误。

解决方法:

1.把WCF改成Web Service;

2.在Web.config中,在<system.web>里面加上  

<webServices>

<protocols>

<add name="HttpPost" />

<add name="HttpGet" />

<add name="HttpPostLocalhost" />
</protocols>

</webServices>

3.刷新Windows Server的浏览器,点击 Web Service的Hello方法,就会返回具体的错误信息了。

 

posted @ 2017-10-21 17:34  ArthurZhu  阅读(643)  评论(0编辑  收藏  举报