Archives for November 2008

How to: Host a WCF Service in a Managed Windows Service

The MSDN Library sample code for hosting a WCF service in a Windows service contains some mistakes and the steps are incomplete.
Steps not specified:
1. Create a Console Application project. There is actually a "WCF Service Application" project type in Visual Studio 2008 – do not use it for this example.
2. Delete Program.cs from the project.
3. [...]

27 November 2008 | .NET | No Comments

Creating a Certificate for a WCF Service

Michele Leroux Bustamente's excellent article details out the Web.config settings for a WCF service that requires UserName credentials. The intention is for a RoleProviderPrincipal with a GenericIdentity reference to be attached to the thread, instead of a WindowsPrincipal with a WindowsIdentity reference which is the default.
To create the certificate required by the service, use the [...]

20 November 2008 | .NET | No Comments

idea rumah