473,471 Members | 2,008 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Disabling Web.Config Inheritance

On my development machine I have one website running in the root, and
I have another site running in a virtual directory.

Is there any way that I can instruct the web.config file in the
virtual directory to NOT inherit the contents of the web.config in the
root web?
Nov 17 '05 #1
1 1806
"Chris" <cm**@walshgroup.com> wrote in message
news:44**************************@posting.google.c om...
On my development machine I have one website running in the root, and
I have another site running in a virtual directory.

Is there any way that I can instruct the web.config file in the
virtual directory to NOT inherit the contents of the web.config in the
root web?


No. The best you can do is to negate in the virtual directory the things in
the root web.config that you don't like.

Sometimes, you have to jump through hoops, though. I had a parent web.config
which had a <http/> section. In order to get rid of the module in the child,
I had to include a copy of it in the child's bin directory - just so I could
<remove /> it in the child!
--
John Saunders
Internet Engineer
jo***********@surfcontrol.com
Nov 17 '05 #2

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

Similar topics

4
by: David | last post by:
Hi, I'm writing some code at the moment where I would like to make use of inheritance from a base class to avoid lots of re-coding in various child classes sharing very similar interfaces. ...
9
by: gerry | last post by:
Is there any way to prevent web.config inheritance in nested web applications ? Here is the scenario, a 3rd party asp.net web application installed on an asp.net intranet site :...
3
by: UJ | last post by:
I am going to write a class that will inherit from SqlCommand and I want to disable certain routines in the SqlCommand and add a couple of new routines. How would I go about doing that? I...
3
by: apiringmvp | last post by:
Hey everyone, I have a config file issue. I have a website with a front in and a back end. (eg. http://www.site.com/ and http://www.site.com/admin). They are both written in .NET 2.0 using...
12
by: Ben | last post by:
I have a group of settings that I'd like to have inherited by multiple sites. I'm trying this, but it's not working. wwwroot\group\web.config wwwroot\group\site1\web.config...
2
by: John A Grandy | last post by:
Enabling / disabling session state can be controlled at the web.config and the iis web site levels. If session state is disabled in web.config , is there any reason to also disable it at the iis...
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...
2
by: metaperl | last post by:
Inheritance needed in app configuration ============================= I have an ftp server that a number of vendors connect into to upload a file to their directory. In OO terms, we would have ...
5
by: =?Utf-8?B?SmVycnkgQw==?= | last post by:
I have a app that uses several membership/role providers. I can list these Providers with the code: Dim rootWebConfig1 As Configuration rootWebConfig1 =...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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,...
1
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,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.