0

In my organization, there is a process where in for every new website/application to be added into the IIS, we have to go through a 6 weeks complex process and waiting. Even after the process completes the team will not have access to IIS. We can only deploy the build files using TFS, web deploy etc.

I have initiated the process for my first application/site in the IIS. I wanted to know if there is a way I can avoid future request/process for new application, by making this upcoming application an application of applications :). Something like child applications. But remember I do not have IIS access. I still have access to my application's web config. I also have the freedom to manage URL structures/patterns.

Either by using multiple routes, multiple projects etc. Just thinking loud. My applications will be of type web api, mvc etc

Any crazy ideas? Thanks in advance.

6
  • 1
    You may find this handy: Understanding Sites, Applications, and Virtual Directories on IIS 7. Commented Nov 5, 2014 at 18:16
  • Why not making folders in your website with each has it's own config file, that way IIS will think of each one of them as a virtual app. Commented Nov 5, 2014 at 18:27
  • @tatigo, I have heard of your idea. But are folders separate applications in that situation? Commented Nov 5, 2014 at 18:48
  • 1
    yes, you can have them as separate applications. I'll post a complete answer. Commented Nov 5, 2014 at 18:56
  • @tatigo, :) you heard my mind crying "gimme the sample code" Commented Nov 5, 2014 at 18:58

1 Answer 1

1

You can have several application roots in IIS, which can be virtual or real directories, under the same site.

Those separate applications will have separate configs and will not inherit each other's settings.

You can access your apps under the same domain, or to be configured to use different domains http://www.domain.com/app1, http://www.domain.com/app2

They can share the same app pool or be configured to use different.

Since you don't have an access to IIS, I'm not sure how would you configure the app pool or domain, but perhaps Microsoft.Web.Administration namespace will help doing this from code. It contains managed classes to manage all aspects of IIS, including the configuration . It can be used from .Net or from PowerShell.

Creating Sites and Virtual Directories Using System.DirectoryServices

Using IIS Programmatic Administration

Sign up to request clarification or add additional context in comments.

2 Comments

I will try a site with multiple applications/virtual directories/folders with individual web configs. Will get back if it works.
@RavishankarRajendran, did the proposed solution worked?

Your Answer

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.