buh*_*tla 10 c# iis wcf http-post
I have a web service which I host on my machine. I use Windows 7 and IIS 7.5.
Problem: When the client tries to consume the web service, he/she gets a HTTP 405 error.
In the log file of IIS, I can see that this is refused because POST verb is not allowed.
问题:如何为这些请求允许POST动词?
我是否必须添加WSDL文件的映射?如果我这样做,我该如何配置此映射?我检查过,在现有的映射中,我没有WSDL扩展.
是否可能在IIS上设置另一个允许这些请求的东西?
Web服务是使用WCF构建的.
buh*_*tla 14
经过几个小时的挣扎,这是帮助我的最终解决方案(从提琴手测试):
结束瞧,小提琴手不再回答405而是高兴200.
小智 7
列出的答案对我不起作用,但我能够通过运行来解决问题
"%WINDIR%\ Microsoft.Net\Framework\v3.0\Windows Communication Foundation\ServiceModelReg.exe"-r
这重新注册了*.svc的处理程序映射