简体   繁体   中英

Can't find default file in WCF service on IIS 7

I have WCF service project.Everything worked fine on Development Server.But I wanted to use net.tcp binding and for this I have set IIS 7.0 server in properties of WCF project. I got a trouble, Error HTTP 404.20 - Not Found (No default document).Clinet is ASP.NET MVC 3. Please help

Doesn't work that way. When published in IIS, a WCF service with an endpoint over net.tcp needs to have a net.tcp site binding. Then, the Windows Activation Service (WAS) comes into play. It's actually a pretty long story.

I suggest you first publish your service in IIS according to these instructions: http://galratner.com/blogs/net/archive/2010/10/08/setting-up-a-nettcpbinding-enabled-wcf-service-in-iis-7.aspx

If it still doesn't work, then post back with extra info.

Note: Extra reading , extra-extra reading .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM