473,396 Members | 1,970 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Multiple virtual directories using the same asp.net application

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

Nov 19 '05 #1
3 1491
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.

"dph" wrote:
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

Nov 19 '05 #2
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.

"Albert Pascual" <Al***********@discussions.microsoft.com> wrote in message
news:0A**********************************@microsof t.com...
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.

"dph" wrote:
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

Nov 19 '05 #3
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.

Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: pleaseHelp | last post by:
To better manage our secure site we just separated the registration and checkout sections of our web into separate virtual directories. These new virtual directories are on the same server as the...
2
by: Jeffry van de Vuurst | last post by:
Hi, (sorry for the crosspost, I wasn't sure which was the best place to put this). I was just thinking about something and wondered if any of you has some ideas about this. I'm using the...
2
by: Greg W. | last post by:
In our setup project, we have the standard web application folder, but we also have 4 web custom folders (virtual directories) that are created at the same level as the web application folder...
5
by: BPearson | last post by:
Hello I would like to have several sites share a single web.config file. To accomplish this, I would point the root of these sites to the same folder. Is there any reason why I might not want to...
0
by: Lasse Nilsson | last post by:
Hi all, I've got a deployment issue I hope is solvable at all, and appreciate all help anyone can give me. We've got an ASP.NET-application (a sort of function library shared by our customers,...
5
by: Sammy | last post by:
On a Windows 2003 Server machine that has multiple IIS web sites, how does one control which web site the new web application gets created under? Thank you, Sammy
1
by: dinosaur8000 | last post by:
Hi, I have two ASP.NET solutions in my website, located in two directories: c:\projects\mainsite -- the main web site solution c:\projects\newmodule -- a module I'm adding on solution My web...
3
by: Brian F | last post by:
Ok here goes: WEBSITE main directory allows anonymous users fine. SITEA, SITEB, and SITEC are all subdirectories under WEBSITE that refer to graphics and javascript in the main virtual...
9
by: Graham | last post by:
I have been having some fun learning and using the new Controls and methods in .Net 2.0 which will make my life in the future easier and faster. Specifically the new databinding practises and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.