473,480 Members | 1,536 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

question regarding overriding of web.config in the root directory..in a web app in a virtual directory

I have a web application in the parent directory(http://localhost/). it has
a web.config setting as follows:

<authentication mode="Forms">
<forms loginUrl="Login.aspx" name="UserToken" protection="All"
timeout="60" path="/">
<credentials passwordFormat="MD5">
</credentials>
</forms>
</authentication>

i installed another web application in a virtual directory named webapp1 (
http://localhost/webapp1) .

it has web.config as follows:

<authentication mode="Forms">
<forms name=".ASPXAUTH" protection="All" timeout="60" />

</authentication>

My problem would be that when i access my new web app1 like

http://localhost/webapp1/

instead of it redirected to default.aspx...it is redirected to the
login.aspx of the parent web app and it can't find the login.aspx..becuase
it doesn't have one..is there any way to override the auythentication
settings of the parent root directory...

Thanks....

Nov 18 '05 #1
1 1953
Insert a <location> tag in the parent app with allow users=*. This
will "free up" the access control from the parent app. Control should
then roll down to the web.config of the app that you are trying to
use. I have not tried this...just an idea.

"dotnetprogram" <sm*********@lycos.com> wrote in message news:<uR**************@TK2MSFTNGP09.phx.gbl>...
I have a web application in the parent directory(http://localhost/). it has
a web.config setting as follows:

<authentication mode="Forms">
<forms loginUrl="Login.aspx" name="UserToken" protection="All"
timeout="60" path="/">
<credentials passwordFormat="MD5">
</credentials>
</forms>
</authentication>

i installed another web application in a virtual directory named webapp1 (
http://localhost/webapp1) .

it has web.config as follows:

<authentication mode="Forms">
<forms name=".ASPXAUTH" protection="All" timeout="60" />

</authentication>

My problem would be that when i access my new web app1 like

http://localhost/webapp1/

instead of it redirected to default.aspx...it is redirected to the
login.aspx of the parent web app and it can't find the login.aspx..becuase
it doesn't have one..is there any way to override the auythentication
settings of the parent root directory...

Thanks....

Nov 18 '05 #2

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

Similar topics

1
1807
by: Chris | last post by:
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...
4
1738
by: Matt | last post by:
The ASP.NET application connects to MS-SQL database, and I already disabled Anonymous access in IIS, and add ASPNET user in it. When I run the application, it throws the following error on windows...
3
2016
by: Joe | last post by:
Hi, I am new to creating .asp web sites and have a basic question. I have a website with .html pages running on an IIS server with .Net installed. I also have a couple of forms on the website....
10
2829
by: Ron Weldy | last post by:
I am working on a website that someone else has set up. They have a web.config file with a customerrors element that points the error handling to a special aspx page. <customErrors...
9
6274
by: Benny Ng | last post by:
Hi,all, How to let the sub-directory to avoid the authentication control from Root's webconfig? I heard that we can add a new web.config to the sub-directory. And then we can slove the problem....
3
2155
by: Manso | last post by:
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...
12
4721
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...
0
1595
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
1597
by: Chris | last post by:
I have a web app which sit in a virtual but is a sub folder of the web tree. I thought if I put the web.config in the virtual it would read from there but it seems to only accept it if the...
0
7044
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
7045
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,...
0
7087
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6741
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
5341
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
4483
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
2995
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
2985
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1300
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.