Disabling the Visual Studio Service Host
Via this post.
If you haven't experienced it yet, there's a project template for WCF in VS2008 that if you run it inside Visual Studio, it will launch an automatic service host overriding any start up code you tried to write.
This could be annoying if you wish to disable it - as it seems, no such option in the menus or anything, pretty shame.
Well, there is a way (Did you really think otherwise? :)), it's a bit tacky - I agree, but that's until they release some sort of UI for this.
You should edit the .csproj file in the following manner:
"<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.21022</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{3CC71D2E-7EC2-46B5-B985-F889B65E3DCD}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>WcfServiceLibrary1</RootNamespace>
<AssemblyName>WcfServiceLibrary1</AssemblyName>
<ProjectTypeGuids>{3D9AD99F-2412-4246-B90B-4EAA41C64699};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<StartArguments>/client:"WcfTestClient.exe"</StartArguments>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
</PropertyGroup>
The ProjectTypeGuids list is what controls these special features of projects.
Removing the {3D9AD99F-2412-4246-B90B-4EAA41C64699} entry from the list will disable automatic service hosting." (Nicholas Allen)