2013-11-04 77 views
2

我已经开发与C#中的WCF RESTful服务,.NET框架4.0和Visual Studio 2010中如何使用Visual Studio 2010在IIS 8.0中部署WCF Web服务?

在Visual Studio 2010中,我有没有右键单击WCF项目,并选择Publish...。在Publish web对话框中,我选择了File system作为publish method

这个WCF服务在我的IIS 7上完美运行,运行在Windows 7 Ultimate 64位上。

我跟了这tutorial发布至一个IIS8,在Windows Server 2012

但是,上运行时,我访问的URL http://localhost/MyService.svc/users我得到一个404 NOT FOUND错误。

此错误页面显示它正在尝试访问未找到的物理路径D:\IIS\MyProject\MyService.svc\users

我需要做些什么来启用我的WCF服务?

回答