Multiple virtual directories using the same asp.net application

D

dph

I have an asp.net application that I need to run from multiple
different virtual directories. However, I don't want simply copy an
instance of the application into each of these directories as that
would be a maintenance nightmare. Also, each of these directories will
need to have a separate copy of the web.config. I was hoping it would
be as simple as a Server.Execute in a default page within each virtual
directory that loaded the shared application, but this doesn't appear
to work. The url also needs to remain the same for each virtual
directory when executing the application. Any help would be greatly
appreciated.
Thanks
 
G

Guest

I have many different IIS domains running in the same directory. So you can
access that directory using mydomain1.com or mydomain2.com etc... It's the
same directory in the hard disk. Also you can access that directory using
mydomain3.com/directory

ISS handles well that way.
 
G

Guest

Another possibility that might make a bit more sense if the component is not
changing (aka in development) is registering it with the GAC.

This can be extremely useful for registering components in a multi-user ,
multi-domain web hosting / application hosting environment.
 
D

dph

Thanks Albert. That helps, but I still need a way to specify a
web.config file for each virtual directory. Do you have any
suggestions on how to go about doing this?
Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top