您好,欢迎来到暴趣科技网。
搜索
您的当前位置:首页Hosting the service in Internet Information

Hosting the service in Internet Information

来源:暴趣科技网

Conception Overview:

It is a better option to host a WCF service within Internet Information Services Server
(IIS) because IIS provides a robust, efficient, and secure host for the WCF services.
IIS also has better thread and process execution boundaries handling (in addition
to many other features) compared to a regular managed application.

 

The main drawback of hosting the service within IIS prior to version 7.0 is the tight
coupling between ASP.NET and web services, which limits the transport protocol
to HTTP/HTTPs. But with IIS 7.0, in addition to HTTP, you can now host a WCF
service with TCP, Named pipe, or MSMQ. You are no longer limited to HTTP.

 

Another thing you need to pay particular attention to when hosting WCF in IIS is
that the process and/or application domain may be recycled if certain conditions
are met. By default the WCF service session state is saved in memory so that
each recycle will lose all such information. This will be a big problem if you run a
website in a load-balanced or web-farm (web-garden) environment. In this case,
you might want to turn on the ASP.NET compatibility mode (add the attribute,
AspNetCompatibilityRequirements, to your WCF service) so that the session
state can be persisted in a SQL Server database or in the ASP.NET State Server.

 

 

转载于:https://www.cnblogs.com/davidgu/archive/2012/03/19/2405978.html

因篇幅问题不能全部显示,请点此查看更多更全内容

Copyright © 2019- baoquwan.com 版权所有 湘ICP备2024080961号-7

违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务