473,387 Members | 1,904 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,387 software developers and data experts.

HttpModule, virtual directories and web.config

Hi,

We have an application that is installed in default web site (root web
site). The same application will be installed as virtual directories under
the root site e.g. <default web site>/app1 and <default web site>/app2.
Starting the root application goes well but when starting app1 it complains
that the HttpModule installed for the default web site is already loaded. I
don't understand this. The following thread mentions a nasty workaround for
the <remove> tag(http://tinyurl.com/84vt9) but I don't quite understand how
these applications relate to each other. Is only HttpModules shared or will
these apps share more things?

When pointing <default web site> to another directory without a web.config
file I can start app1 and app2 without any problem. Can someone shed some
light on this and maybe point me to some good articles because I can't find
any good ones describing how web.config settings in virtual dirs relate to
the root site.

I can't run these apps under another IIS instance because the need to share
the same hostname/port.

Thanks in advance,
Manso
Nov 19 '05 #1
3 2153

not sure , if this will help

"Make Multiple Visual Studio .NET Projects Participate in the Same Web
Application"

http://support.microsoft.com/default...en-us;307467#5


"Manso" wrote:
Hi,

We have an application that is installed in default web site (root web
site). The same application will be installed as virtual directories under
the root site e.g. <default web site>/app1 and <default web site>/app2.
Starting the root application goes well but when starting app1 it complains
that the HttpModule installed for the default web site is already loaded. I
don't understand this. The following thread mentions a nasty workaround for
the <remove> tag(http://tinyurl.com/84vt9) but I don't quite understand how
these applications relate to each other. Is only HttpModules shared or will
these apps share more things?

When pointing <default web site> to another directory without a web.config
file I can start app1 and app2 without any problem. Can someone shed some
light on this and maybe point me to some good articles because I can't find
any good ones describing how web.config settings in virtual dirs relate to
the root site.

I can't run these apps under another IIS instance because the need to share
the same hostname/port.

Thanks in advance,
Manso

Nov 19 '05 #2
If you're running applications in subdirectories of the root,
you should *never* make the root directory itself an application.

That will, as you've found out, make all applications in subdirectories
dependent on the root application, and the root's web.config will take
precedence over all other web.configs in all application subdirectories.

The <default web site> should *never* be an application itself.

You don't need any "good articles".
Just unload the root directory's application using the Internet Service Manager.

As soon as you do that, *all* your applications in subdirectories
will work independently of each other *and* independently of the root.


Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
"Manso" <Ma***@discussions.microsoft.com> wrote in message
news:82**********************************@microsof t.com...
Hi,

We have an application that is installed in default web site (root web
site). The same application will be installed as virtual directories under
the root site e.g. <default web site>/app1 and <default web site>/app2.
Starting the root application goes well but when starting app1 it complains
that the HttpModule installed for the default web site is already loaded. I
don't understand this. The following thread mentions a nasty workaround for
the <remove> tag(http://tinyurl.com/84vt9) but I don't quite understand how
these applications relate to each other. Is only HttpModules shared or will
these apps share more things?

When pointing <default web site> to another directory without a web.config
file I can start app1 and app2 without any problem. Can someone shed some
light on this and maybe point me to some good articles because I can't find
any good ones describing how web.config settings in virtual dirs relate to
the root site.

I can't run these apps under another IIS instance because the need to share
the same hostname/port.

Thanks in advance,
Manso

Nov 19 '05 #3
Juan,

Thanks for your prompt and good reply. Our problem is that we have to deploy
this application as a root web site. To my knowledge root sites are the only
place you can use host headers. Often, our customers have plenty of sub
applications (virtual directories) already in place and they need to run this
under the same domain name. So, let's say our application is installed on
www.mysite.com they need to keep www.mysite.com/app1, www.mysite.com/app2
etc. Sounds strange that the ASP.NET configuration model can't accommodate
this setup. Can you think of any other way to have multiple independent
"subsites" sharing the same host headers?

Thanks,
Manso

"Juan T. Llibre" wrote:
If you're running applications in subdirectories of the root,
you should *never* make the root directory itself an application.

That will, as you've found out, make all applications in subdirectories
dependent on the root application, and the root's web.config will take
precedence over all other web.configs in all application subdirectories.

The <default web site> should *never* be an application itself.

You don't need any "good articles".
Just unload the root directory's application using the Internet Service Manager.

As soon as you do that, *all* your applications in subdirectories
will work independently of each other *and* independently of the root.


Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
"Manso" <Ma***@discussions.microsoft.com> wrote in message
news:82**********************************@microsof t.com...
Hi,

We have an application that is installed in default web site (root web
site). The same application will be installed as virtual directories under
the root site e.g. <default web site>/app1 and <default web site>/app2.
Starting the root application goes well but when starting app1 it complains
that the HttpModule installed for the default web site is already loaded. I
don't understand this. The following thread mentions a nasty workaround for
the <remove> tag(http://tinyurl.com/84vt9) but I don't quite understand how
these applications relate to each other. Is only HttpModules shared or will
these apps share more things?

When pointing <default web site> to another directory without a web.config
file I can start app1 and app2 without any problem. Can someone shed some
light on this and maybe point me to some good articles because I can't find
any good ones describing how web.config settings in virtual dirs relate to
the root site.

I can't run these apps under another IIS instance because the need to share
the same hostname/port.

Thanks in advance,
Manso


Nov 19 '05 #4

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

Similar topics

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...
1
by: Mark | last post by:
Aside from a virtual directory sharing memory with other sites, are there security issues caused by using virtual directories? I have a collegue that claims that a hacker could screw around with...
3
by: dph | last post by:
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...
0
by: Yogesh Pancholi | last post by:
For some unexplained reason, I am suddenly unable to browse to a virtual directory on my laptop. I have a number of sample websites to which I could happliy browse up until last week. As of Monday,...
1
by: Mark | last post by:
In our root web site, we have roughly 100 folders. 10 of these are virtual directories. The other 90 folders are a mix - some contain static HTML content. Others contain subfolders and...
0
by: djmc | last post by:
Hi, I am having problems with virtual directories and web.config inheritance. I have read the section titled "Conflicts between settings on virtual and physical directories" at...
1
by: jonas | last post by:
I have a problem with different .NET Framework versions in virtual directories. Virtual directory /folder_a, is configured as an application running ..NET Framework 2.0 and contains an ASP.NET...
12
by: Pao | last post by:
Hi all For all NEW sites (virtual directories) that I create, I receive always the same error: (I translate so may be a little different) Impossible to visualize the XML page Impossible to...
4
by: Paul F | last post by:
Im confused about the difference(s) between virtual directories and physical directories in IIS. Any ideas? *** Sent via Developersdex http://www.developersdex.com ***
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.