PC Review


Reply
Thread Tools Rate Thread

Deploying Multiple WCF Services In Same IIS Virtual Directory

 
 
Allan.Iverson
Guest
Posts: n/a
 
      17th Dec 2009
I'm responsible for helping .NET developers at a Fortune 100 company and I
have a general question. Recently a team of .NET developers created a
intranet WPF Browser application and 4 distinct WCF services that support
requirements of that application. Each WCF service has multiple web methods
and overall each service appears to be a coherent entity from a functional
perspective.

However the team implemented all four services in a single Visual Studio
2008 project. So that project has four .SVC files, four managed assemblies,
four unique service contracts and a single shared web.config for storing
bindings, endpoints, etc. While technically this should work fine it's not
the way that I would have structured the overall projects solution. Note: We
host all of our WCF services in IIS 6.0, and will be moving soon to IIS 7.0.
We also have in place an automated build and deployment process that
basically was architected to deploy each Visual Studio Web Type project to
it's own virtual directory, so seperating the services during deployment is
not something we can easily do.

Here are some of the drawback I see to this approach:
1.) Multiple .SVC files precludes specifying a default document to be served
up when clients browse to the services virtual directory.

2.) As our .NET IIS deployment standard calls for creating a specific
application pool for each virtual directory, having multiple WCF services in
the same virtual directory needlessly couples the services, should one
service misbehave, and we have to recycle the app pool.

3.) Having a single web.config file governing four WCF Services, by
necessity is more complex, than having a single web.config file for each
service. This would increase the chances that a misconfiguration in this file
would affect four services at runtime as opposed to only one. We could
mitigate the clutter by sourcing into the web.config seperate stanzas for
each specific web service configuration but that still doesn't remove the
runtime dependencies forced by a single web.config file.

While I certainly don't think this approach would be even close to a 'Best
Practice' I'm reluctant to force the team to refactor each WCF service into
it's own individual project.

I'm looking for any comments or insights members can supply to help me make
a more informed decision.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
UIP Block - Deploying to IIS Web Site (not Virtual Directory) Mike Dorey via DotNetMonster.com Microsoft ASP .NET 0 16th Feb 2005 03:21 PM
Multiple web.config files in a virtual directory Raghu Microsoft ASP .NET 6 27th May 2004 08:28 PM
Multiple asp.net apps in same Virtual Directory =?Utf-8?B?QnJpYW4=?= Microsoft ASP .NET 1 28th Apr 2004 05:26 PM
Running multiple ASP.Net applications on the same IIS virtual directory ronniek Microsoft ASP .NET 1 18th Mar 2004 04:31 PM
Deploying on non-standard port w/multiple virtual directories Greg W. Microsoft ASP .NET 2 13th Nov 2003 09:45 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:26 AM.