0

I am working on a (largish) internal web application which has multiple modules (security, execution, features, reports, etc.). All the pages in the app share navigation, CSS, JS, controls, etc. I want to make a single "Web Application" project, which includes all the pages for the app, then references various projects which will have the database and business logic in them. However, some of the people on the project want to have separate projects for the pages of each module.

To make this more clear, this is what I'm advocating to be the projects.

/WebInterface*
/SecurityLib
/ExecutionLib
etc...

And here is what they are advocating:

/SecurityInterface*
/SecutiryLib
/ExecutionInterface*
/ExecutionLib
etc...

*project will be published to a virtual directory of IIS

Basically What I'm looking for is the advantages of both approaches. Here is what I can think of so far:

Single Virtual Directory

Pros

  1. Modules can share a single MasterPage
  2. Modules can share UserControls (this will be common)
  3. Links to other modules are within the same Virtual directory, and thus don't need to be fully qualified.
  4. Less chance of having incompatible module versions together.

Multiple Virtual Directories

Pros

  1. Can publish a new version of a single module without disrupting other modules
  2. Module is more compartmentalized. Less likely that changes will break other modules.

I don't buy those arguments though.
First, using load balanced servers (which we will have) we should be able to publish new versions of the project with zero downtime assuming there are no breaking database changes. Second, If something "breaks" another module, then there is either an improper dependency or the break will show up eventually in the other module, when the developers copy over the latest version of the UserControl, MasterPage or dll.

As a point of reference, there are about 10 developers on the project for about 50% of their time. The initial development will be about 9 months.

1 Answer 1

0

I don't see much reason to use multiple virtual folders.

Separating functionality into separate modules is a great idea. But that has nothing to do with virtual folders. Modules can be separated library projects and published using separate assemblies. They can then be unit tested separately and deployed individually. That's what I generally do myself.

2
  • So you can have multiple Web Application projects under a single virtual directory? This still suffers from some of the drawbacks though (cannot share MasterPage or UserControls), However, this would solve the link problem.
    – tster
    May 1, 2010 at 19:52
  • Multiple projects referring to multiple library projects and then using those as references in your large Web Application Project. This also benefits testing and separation of concerns. A big plus for large projects.
    – kervin
    May 1, 2010 at 21:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.