简体   繁体   中英

How to deploy a WCF web service in IIS 8.0 using Visual Studio 2010?

I've developed a WCF Restful service with C#, .NET Framework 4.0 and Visual Studio 2010.

On Visual Studio 2010, I have did right click on WCF project, and select Publish... . On Publish web dialog I have selected File system as publish method .

This WCF service runs perfectly on my IIS 7, running on a Windows 7 Ultimate 64 bits.

I have followed this tutorial to publish it on an IIS8, running on a Windows Server 2012.

But, when I access the url http://localhost/MyService.svc/users I get a 404 NOT FOUND error.

This error page show that it is trying to access the physical path D:\\IIS\\MyProject\\MyService.svc\\users that is not found.

What do I have to do to enable my WCF Service?

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