【问题标题】:How to deploy a WCF web service in IIS 8.0 using Visual Studio 2010?如何使用 Visual Studio 2010 在 IIS 8.0 中部署 WCF Web 服务?
【发布时间】:2013-11-15 04:25:21
【问题描述】:

我使用 C#、.NET Framework 4.0 和 Visual Studio 2010 开发了 WCF Restful 服务。

在 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 服务?

【问题讨论】:

    标签: c# asp.net wcf iis iis-8


    【解决方案1】:

    【讨论】:

    • 太好了,我今天早上遇到了同样的问题,这篇文章完全正确。感谢您回答并发布上面的 2 个链接!
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-09-18
    • 2013-11-26
    • 1970-01-01
    • 2011-07-21
    相关资源
    最近更新 更多