473,748 Members | 8,376 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

"Inheriting " web.config

Dear All,

We are experiencing a problem with web.config and the fact that it's
settings are being "inherited" other applications.

Our default website is configured to run "MyApplication1 ". The website
also contains 2 Virtual Directories which run "MyApplication2 " and
"MyApplication3 ". All three applications are .NET projects.
"MyApplication2 " inherits a HTTPModule setting from "MyApplication1 "
so to fix this we have amended the web.config for "MyApplication2 "
with the following code:

<httpModules>
<remove name="HTTPHandl er" />
<clear />
</httpModules>

Furthermore we inserted a dummy dll in the bin directory. This has
seemingly fixed the problem we were receiveing.

Now onto my question...is there anything we can do to stop the
web.congif file from being inherited? We have tried to host these all
as Virtual Directories and use some kind of redirecting within IIS to
select the correct application. We have been unable to make this work.
I´m not sure whether this is possible but perhaps is a question for
another newsgroup :-).

Thanks in advance for your help.

Cheers
Jose
Nov 18 '05 #1
6 1806
Make the child directories applications.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Jose Perez" <jl**@totalise. co.uk> wrote in message
news:37******** *************** ***@posting.goo gle.com...
Dear All,

We are experiencing a problem with web.config and the fact that it's
settings are being "inherited" other applications.

Our default website is configured to run "MyApplication1 ". The website
also contains 2 Virtual Directories which run "MyApplication2 " and
"MyApplication3 ". All three applications are .NET projects.
"MyApplication2 " inherits a HTTPModule setting from "MyApplication1 "
so to fix this we have amended the web.config for "MyApplication2 "
with the following code:

<httpModules>
<remove name="HTTPHandl er" />
<clear />
</httpModules>

Furthermore we inserted a dummy dll in the bin directory. This has
seemingly fixed the problem we were receiveing.

Now onto my question...is there anything we can do to stop the
web.congif file from being inherited? We have tried to host these all
as Virtual Directories and use some kind of redirecting within IIS to
select the correct application. We have been unable to make this work.
I´m not sure whether this is possible but perhaps is a question for
another newsgroup :-).

Thanks in advance for your help.

Cheers
Jose

Nov 18 '05 #2
They are already configured as Applications in IIS.

Any other ideas?

Cheers
Jose
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #3
IMO it looks like it takes actually all web.config files since the root
regardless if they belong or not to the same application (and the doc
doesn't mention the behavior in this case, they just talk about subdirs).

I would avoid nested applications storing for example those 3 applications
at the same level...

Patrice

--

"Jose Perez" <jl**@totalise. co.uk> a écrit dans le message de
news:uh******** ******@TK2MSFTN GP12.phx.gbl...
They are already configured as Applications in IIS.

Any other ideas?

Cheers
Jose
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 18 '05 #4
I would like to store the web applications at the same level but have
been unable to do so. (I concious of changing the subject of the post
but I'll do it anyway...)

I want 1 application (the main one) to be accessed from the root and any
other application to be accessed as if it were a Virtual Directory. So,
www.domain.com would give me application 1, www.domain.com/app2 would
give me (the separate) application 2 and so on. I have had difficulty in
using IIS to map to the different directories.

Do you have any idea?

Thanks,
Jose

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #5
Not sure. For non nsedtad applications, I see basically :

- host header names ? (but I believe it applies only to domain names)
- creating virtual dirs for app2 and app3 inside app1 pointing to the
physically non nested applications (depending on how .NET locates web.config
files)
- AFAIK it's quite easy in .NET to do URL rewriting (mapping a "friendly"
URL to your "true" real URL behind the scene)
- Others ?

Good luck.

Patrice

--

"Jose Perez" <jl**@totalise. co.uk> a écrit dans le message de
news:ex******** *****@TK2MSFTNG P12.phx.gbl...
I would like to store the web applications at the same level but have
been unable to do so. (I concious of changing the subject of the post
but I'll do it anyway...)

I want 1 application (the main one) to be accessed from the root and any
other application to be accessed as if it were a Virtual Directory. So,
www.domain.com would give me application 1, www.domain.com/app2 would
give me (the separate) application 2 and so on. I have had difficulty in
using IIS to map to the different directories.

Do you have any idea?

Thanks,
Jose

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 18 '05 #6
In case you wonder I meant "nested" instead of "nesdtad".. .

--

"Patrice" <no****@nowhere .com> a écrit dans le message de
news:e9******** ******@TK2MSFTN GP12.phx.gbl...
Not sure. For non nsedtad applications, I see basically :

- host header names ? (but I believe it applies only to domain names)
- creating virtual dirs for app2 and app3 inside app1 pointing to the
physically non nested applications (depending on how .NET locates web.config files)
- AFAIK it's quite easy in .NET to do URL rewriting (mapping a "friendly"
URL to your "true" real URL behind the scene)
- Others ?

Good luck.

Patrice

--

"Jose Perez" <jl**@totalise. co.uk> a écrit dans le message de
news:ex******** *****@TK2MSFTNG P12.phx.gbl...
I would like to store the web applications at the same level but have
been unable to do so. (I concious of changing the subject of the post
but I'll do it anyway...)

I want 1 application (the main one) to be accessed from the root and any
other application to be accessed as if it were a Virtual Directory. So,
www.domain.com would give me application 1, www.domain.com/app2 would
give me (the separate) application 2 and so on. I have had difficulty in
using IIS to map to the different directories.

Do you have any idea?

Thanks,
Jose

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


Nov 18 '05 #7

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

Similar topics

51
6999
by: Noam Raphael | last post by:
Hello, I thought about a new Python feature. Please tell me what you think about it. Say you want to write a base class with some unimplemented methods, that subclasses must implement (or maybe even just declare an interface, with no methods implemented). Right now, you don't really have a way to do it. You can leave the methods with a "pass", or raise a NotImplementedError, but even in the best solution that I know of,
12
3093
by: relaxedrob | last post by:
Hi All! I have a page with with the following style information: <link rel="stylesheet" type="text/css" href="/eEmployment/eTech.css" /> <style type="text/css"> DIV.Application { BACKGROUND-IMAGE:url(/someImage.jpg); }
12
1917
by: Ola Johansson | last post by:
Can anyone explain to me a meningfull use of the "new" keyword (Shadows in VB). I think i understand how it works fully but i cant figure out why you would use it. Why would you want to declare a variable in a derived class with the same name as in the base class but with a diffrent meaning? Anyone can think of a scenario for this?
4
1431
by: samadams_2006 | last post by:
Hello, I have a peculiar problem that I'm hoping someone can help me out with. I have a simple enough Web Application written in VB.Net via Visual Studio 2003. It simply displays a Web Form with a label field saying "Hello". When I run this application interactively via Visual Studio 2003, I have no problems. When I transfer this code to my Web Site and type in the URL: : http://www.certify-it.com/Test/test1.aspx , it give me the
3
34475
by: Paul | last post by:
Hi All, In my application, I wished to check certain things on each page load, so rather than paste the same code in each pages constructor, I thought it would be more logical to inherit from Page and place the code in there. Then each webpage will inherit from my modified page class. This works fine, but if I try and access the Session from the modified page class, I get the following error: Session state can only be used when...
5
8288
by: Alias | last post by:
Hi - I'm trying to implement a custom RoleProvider based on the SqlRoleProvider. I keep receiving a an error that it can't load type 'MyRoleTest.MyRoleProvider' when trying to load my RoleProvider. However this only occurs after deployment. On my local machine it works fine. So I created the most basic role provider project I could think of. It is below: Imports System.Web.Security
2
2245
by: Christof Warlich | last post by:
Hi, I'd like to define a class that should behave as much as posible like std::string, but that has some small additional property: class ExtendedString: public std::string { public: void someExtendedFunctionality(void) {} };
1
1272
by: Adam Nielsen | last post by:
Hi again, I've got another question about template specialisation. I would like to declare some data types in the main template (the "base class") but I would then like to extend the behaviour with template specialisations. Unfortunately it seems that when I try this, the specialisation doesn't get appended to the base template (as happens when you inherit from a base class), but rather it replaces it completely, for example this code...
1
1632
by: Arthur Dent | last post by:
Hello all... I have a method which returns a KeyValuePair(Of Long, String). I would like to make an alias for that, so instead of typing KeyValuePair(Of Long, String) everywhere I could just type my alias instead. First I thought inheritance, ... Structure MyPair Inherits KeyValuePair(Of Long, String), but you can't inherit structures. Next I thought Lambdas, but I don't think those really apply here.
0
8830
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9541
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9321
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9247
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8242
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6796
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4874
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2782
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2215
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.