472,795 Members | 2,311 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,795 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 2120

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: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: lllomh | last post by:
How does React native implement an English player?
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

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.