Geeks With Blogs

Tim Murphy

Tim is a Solutions Architect for PSC Group, LLC. He has been an IT consultant since 1999 specializing in Microsoft technologies. Along with running the Chicago Information Technology Architects Group and speaking on Microsoft and architecture topics he was also contributing author on "The Definitive Guide to the Microsoft Enterprise Library".

I review for the O'Reilly Blogger Review Program

Technorati Profile

Tim Murphy's .NET Software Architecture Blog Adventures in Architecting and Developing .NET

If you are developing you WCF service for web service deployment under IIS and coding with the Visual Studio web server you are in for a rude awakening when it comes time to deploy your solution.  Ok, so that is a little over dramatic, but there are a few steps and precautions you need to know about.

Below are the main steps to deploying your application to IIS assuming WCF is already installed and registered.

The first step is to create an application pool.  Make sure that for your .NET 3.5 WCF service that the application pool is set to the 2.0 .NET framework.


Next you need to create a new site.  The application pool for this site should be the one that you just created.


So here is that precaution I was talking about earlier.  You run into a number of hurdles if you try to share a site with a WCF service and another application.  The easiest way around that is to deploy each service project to its own site.  I am still working on how to get them to co-exist and will post that information when I have it resolved.

Lastly, at a minimum you need to copy the bin directory, web.config and .svc files to the physical directory that your new site references.  This configuration should work in most cases.  In the future I will address some of the common alternate configuration.  Stay tuned.

Posted on Monday, August 29, 2011 6:03 AM .NET , WCF | Back to top

Comments on this post: WCF Deployment To IIS

No comments posted yet.
Your comment:
 (will show your gravatar)

Copyright © Tim Murphy | Powered by: | Join free