如何在IIS6中托管WCF服务 [英] HOW DO I HOST A WCF SERVICE IN IIS6
问题描述
如何将IIS-6托管的WCF服务服务引用添加到客户端应用程序.我试图做到这一点,但这就是我得到的;
下载"http://localhost/IISHostService/Service.svc"时出错.
请求失败,HTTP状态为404:找不到.
元数据包含无法解析的引用:"http://localhost/IISHostService/Service.svc".
远程服务器返回了意外的响应:(405)不允许使用方法.
远程服务器返回错误:(405)不允许使用方法.
如果服务是在当前解决方案中定义的,请尝试构建解决方案并再次添加服务引用."
How do i add an IIS-6 hosted WCF-service service reference to a client application. i tried to do it but this is what i get;
"There was an error downloading ''http://localhost/IISHostService/Service.svc''.
The request failed with HTTP status 404: Not Found.
Metadata contains a reference that cannot be resolved: ''http://localhost/IISHostService/Service.svc''.
The remote server returned an unexpected response: (405) Method Not Allowed.
The remote server returned an error: (405) Method Not Allowed.
If the service is defined in the current solution, try building the solution and adding the service reference again."
推荐答案
通常是需要的.svc映射待配置...很多Google命中此
http://www.google.co.uk/search?q=WCF+SERVICE+ IN + IIS6 [^ ]
在这里看看
http://stackoverflow.com/questions/451701/wcf-not-running- under-iis-6-0 [ ^ ]
It''s usually the .svc mapping that needs to be configued...lots of google hits on this
http://www.google.co.uk/search?q=WCF+SERVICE+IN+IIS6[^]
Have a look here
http://stackoverflow.com/questions/451701/wcf-not-running-under-iis-6-0[^]
这篇关于如何在IIS6中托管WCF服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!