Deploying an Internet Information Services-Hosted WCF Service

.NET Framework 4
 

Visual Studio 2010 provides two different ways to deploy a WCF service to be hosted under IIS. Within a WCF Service Application Project you can tell Visual Studio to host the service on the local IIS instance. Or from any WCF project type you can instruct Visual Studio to deploy the service to any IIS instance. You can also manually deploy a WCF service to IIS. For a detailed walkthrough of creating an IIS-hosted WCF service, see How to: Host a WCF Service in IIS.

Before hosting or deploying a WCF service to IIS, make sure that IIS, ASP.NET, and WCF are installed and configured correctly.

Ensure That IIS, ASP.NET and WCF Are Correctly Installed and Registered

WCF, IIS, and ASP.NET must be installed for IIS-hosted WCF services to function correctly. The procedures for installing WCF (as part of the .NET Framework 3.0), ASP.NET and IIS vary depending on the operating system version being used. For more information about installing WCF and the .NET Framework 3.0, see Microsoft .NET Framework 4.0 Web Installer. Instructions for installing IIS can be found at Installing IIS.

The installation process for the .NET Framework 3.0 automatically registers WCF with IIS if IIS is already present on the machine. If IIS is installed after the .NET Framework 3.0, an additional step is required to register WCF with IIS and ASP.NET. You can do this as follows, depending on your operating system:

  • Windows XP SP2 and Windows Server 2003: Use the ServiceModel Registration Tool (ServiceModelReg.exe) tool to register WCF with IIS: To use this tool, type ServiceModelReg.exe /i /x in the Visual Studio command prompt. You can open this command prompt by clicking the start button, selecting All Programs, Microsoft Visual Studio 2010, Visual Studio Tools, and Visual Studio Command Prompt (2010).
  • Windows Vista: Install the Windows Communication Foundation Activation Components subcomponent of the .NET Framework 3.0. To do this, in Control Panel, click Add or Remove Programs and then Add/Remove Windows Components. This activates the Windows Component Wizard.

Finally you must verify that ASP.NET is configured to use the .NET Framework version 4.0. You do this by running the ASPNET_Regiis tool with the –i option. For more information, see ASP.NET IIS Registration Tool

详细请查看

https://msdn.microsoft.com/library/aa751792(v=vs.100).aspx

最新文章

  1. 理解闭包 js回收机制
  2. 好的bootstrap文章
  3. Ultra-QuickSort
  4. 继承IDbConnection连接不同数据库
  5. JLS(Third Edition) Chapter12 Execution
  6. jdbc无法连接数据解析
  7. Servlet过滤器和监听器
  8. JS基础语法
  9. Oracle 直接路径读
  10. 如何配置jdk和tomcat 转
  11. Hibernate一个简短的引论
  12. Myeclipse8.5开发-程序发布
  13. office web apps 部署-搭建域控服务器
  14. SVG轨迹回放实践
  15. RedisPool操作Redis,工具类实例
  16. 洛谷P4492 [HAOI2018]苹果树(组合数)
  17. Run-time code to create charts:
  18. Python学习三|列表、字典、元组、集合的特点以及类的一些定义
  19. 让Android SDK Manager正常更新的办法
  20. [vue]webpack&vue组件工程化实践

热门文章

  1. linux集群运维工具:clustershell和pssh
  2. 在SharePoint 2013中显示“以其他用户身份登录”
  3. 给view添加类似系统上拉快捷菜单的手势
  4. Android TextView 高亮字体并添加点击事件
  5. IOS 四舍五入 进一法 去尾法
  6. Java你可能不知道的事(3)HashMap
  7. 网站错误记录:Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool.
  8. Sandcastle----强大的C#文档生成工具
  9. numpy函数fromfunction分析
  10. CMPP错误码说明