Saturday, 8 May 2010
Hosting Windows Communication Foundation Services
HomeLibraryLearnDownloadsSupportCommunitySign in |United States - English |PreferencesMSDN Library.NET Development.NET Framework 3.5Windows Communication FoundationBasic WCF ProgrammingHosting ServicesHow to: Host a WCF Service in Iâ?¦How to: Host a WCF Service in Wâ?¦How to: Host a WCF Service in aâ?¦How to: Host a WCF Service in aâ?¦Community ContentAdd code samples and tips to enhance this topic.More...Hosting Windows Communication Foundation ServicesTo become active, a service must be hosted within a run-time environment that creates it and controls its context and lifetime. Windows Communication Foundation (WCF) services are designed to run in any Windows process that supports managed code. WCF provides a unified programming model for building service-oriented applications. This programming model remains consistent and is independent of the run-time environment in which the service is deployed. In practice, this means that the code for your services looks much the same whatever the hosting option. These hosting options range from running inside a console application to server environments such as a Windows service running within a worker process managed by Internet Information Services (IIS) or by Windows Process Activation Service (WAS). Developers choose the hosting environment that satisfies the services deployment requirements. These requirements might derive from the platform on which the application is deployed, the transport on which it must send and receive messages, or on the type of process recycling and other process management required to ensure adequate availability, or on some other management or reliability requirements. The next section provides information and guidance on hosting options.Hosting OptionsSelf-Hosting in a Managed ApplicationWCF services can be hosted in any managed application. This is the most flexible option because it requires the least infrastructure to deploy. You embed the code for the service inside the managed application code and then create and open an instance of the ServiceHost to make the service available. For more information, see How to: Host a WCF Service in a Managed Application. This option enables two common scenarios: WCF services running inside console applications and rich client applications such as those based on Windows Presentation Foundation (WPF) or Windows Forms (WinForms). Hosting a WCF service inside a console application is typically useful during the applications development phase. sexy amateur This makes them easy to debug, easy to get trace information from to find out what is happening inside of the application, and easy to move around by copying them to new locations. This hosting option also makes it easy for rich client applications, such as WPF and WinForms applications, to communicate with the outside world. For example, a peer-to-peer collaboration client that uses WPF for its user interface and also hosts a WCF service that allows other clients to connect to it and share information. Managed Windows ServicesThis hosting option consists of registering the application domain (AppDomain) that hosts an WCF service as a managed Windows Service (formerly known as NT service) so that the process lifetime of the service is controlled by the service control manager (SCM) for Windows services. Like the self-hosting option, this type of hosting environment requires that some hosting code is written as part of the application. The service is implemented as both a Windows Service and as an WCF service by causing it to inherit from the ServiceBase class as well as from an WCF service contract interface. The ServiceHost is then created and opened within an overridden OnStart method and closed within an overridden OnStop method. An installer class that inherits from Installer must also be implemented to allow the program to be installed as a Windows Service by the Installutil.exe tool. For more information, see How to: Host a WCF Service in a Managed Windows Service. The scenario enabled by the managed Windows Service hosting option is that of a long-running WCF service hosted outside of IIS in a secure environment that is not message-activated. The lifetime of the service is controlled instead by the operating system. This hosting option is available in all versions of Windows.Internet Information Services (IIS)The IIS hosting option is integrated with ASP.NET and uses the features these technologies offer, such as process recycling, idle shutdown, process health monitoring, and message-based activation. On the Windows XP and Windows Server 2003 operating systems, this is the preferred solution for hosting Web service applications that must be highly available and highly scalable. IIS also offers the integrated manageability that customers expect from an enterprise-class server product. This hosting option requires that IIS be properly configured, but it does not require that any hosting code be written as part of the application. For more information about how to configure IIS hosting for a WCF service, see How to: Host a WCF Service in IIS.Note that IIS-hosted services can only use the HTTP transport. Its implementation in IIS 5.1 has introduced some limitations in Windows XP. The message-based activation provided for an WCF service by IIS 5.1 on Windows XP blocks any other self-hosted WCF service on the same computer from using port 80 to communicate. WCF services can run in the same AppDomain/Application Pool/Worker Process as other applications when hosted by IIS 6.0 on Windows Server 2003. But because WCF and IIS 6.0 both use the kernel-mode HTTP stack (HTTP.sys), IIS 6.0 can share port 80 with other self-hosted WCF services running on the same machine, unlike IIS 5.1. Windows Process Activation Service (WAS)Windows Process Activation Service (WAS) is the new process activation mechanism for the Windows Server 2008 that is also available on Windows Vista. It retains the familiar IIS 6.0 process model (application pools and message-based process activation) and hosting features (such as rapid failure protection, health monitoring, and recycling), but it removes the dependency on HTTP from the activation architecture. IIS 7.0 uses WAS to accomplish message-based activation over HTTP. Additional WCF components also plug into WAS to provide message-based activation over the other protocols that WCF supports, such as TCP, MSMQ, and named pipes. This allows applications that use communication protocols to use the IIS features such as process recycling, rapid fail protection, and the common configuration system that were only available to HTTP-based applications.This hosting option requires that WAS be properly configured, but it does not require you to write any hosting code as part of the application. For more information about how to configure WAS hosting, see How to: Host a WCF Service in WAS.Choosing a Hosting EnvironmentThe following table summarizes some of the key benefits and scenarios associated with each of the hosting options.
Windows Dedicated Server , Windows Web Hosting Server Solutions
Windows 2003 or Windows 2008IIS NET framework FrontPage Extensions Microsoft Terminal Services for remote access Support for SQL database server, SharePoint and other Microsoft applications Sharepoint servicesSharePoint is designed to help you to work more effectively with colleagues and business partners, and manage information in a secure, easy-to-manage online environment. Together with our specialist consultancy partner, NetBenefit can provide a complete, dedicated Windows-hostedsolution for both SharePoint Services and SharePoint Portal Server. The service covers all aspects of the system from planning through to deployment, and includes end-user training and helpdesk services. Mature Women NetBenefit Managed Hosting will host SharePoint for you on a dedicated Windows server, and ensure that it is secure and available 24/7. Which Windows hosting solution is best for you?SharePoint technologies include powerful indexing and searching tools, automated alerts to notify you of content changes, as well as the ability to personalise content. Here are some examples of how this powerful business tool can help your business: Document management Team and project sites Intranet sites Extranet projects Portal for line-of-business applications Content management If you are already using SharePoint but would like to change to a dedicated Windows server, or if you are interested in how SharePoint could meet your business requirements, please contact NetBenefit.
EFEXTRA.NET HOSTING :: Windows Web Hosting - ASP, ASP.NET, SQL ...
We offer windows web hosting at an affordable price. All web hosting plans support the ASP.NET hosting platform and
Active Server Pages. If you require a Windows web hosting environment for your web site, start with the basic Windows
Starter Hosting package, which supports ASP, .NET, Access, PHP & MySQL. Handjob XXX For web developers who use ASP or ASP.NET, its
our most popular windows web hosting plan. Starting at just $4.95 per month, it has the most web space and data transfer
in its price range.
Active Server Pages. If you require a Windows web hosting environment for your web site, start with the basic Windows
Starter Hosting package, which supports ASP, .NET, Access, PHP & MySQL. Handjob XXX For web developers who use ASP or ASP.NET, its
our most popular windows web hosting plan. Starting at just $4.95 per month, it has the most web space and data transfer
in its price range.
Subscribe to:
Comments (Atom)