473,499 Members | 1,494 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Web.config file

Hi,

I have an application that I want to setup for each folder a web.config file
with different authentication, but when I try to do that it gives me an
error saying that maybe that folder is not configured in IIS as virtual
directory.

In the root I don't want to have redirect to login page if i try to access
any file in the root.
If I want to access to any FOLDER present in application root I want to
redirect to the Login page with authentication Forms type.

I already try to put one we.config file in each folder but the error
described above occurs.
--
Programming ASP.NET with VB.NET
Thank's (if you try to help me)
Hope this help you (if I try to help you)
ruca
Nov 20 '05 #1
5 1281
normally there is only 1 web.config (root level)
in there you can have
<authentication mode="Forms">
<forms loginUrl="Secure/Login.aspx" />
</authentication>
i know it is possible to have this securing different folders in different
ways (probably w the authorization) but i do it myself, as my user and
security system is a part of my application. When you log in your user is
stored in the session and dependant on the rights, and location info
associated w that user you get or don't get sertain stuff.

in other words i only use the web.config to make sure a user logs in
(instaid of going to a url direct)

hope it helps

eric

"ruca" <ru***@iol.pt> wrote in message
news:ee**************@TK2MSFTNGP12.phx.gbl...
Hi,

I have an application that I want to setup for each folder a web.config file with different authentication, but when I try to do that it gives me an
error saying that maybe that folder is not configured in IIS as virtual
directory.

In the root I don't want to have redirect to login page if i try to access
any file in the root.
If I want to access to any FOLDER present in application root I want to
redirect to the Login page with authentication Forms type.

I already try to put one we.config file in each folder but the error
described above occurs.
--
Programming ASP.NET with VB.NET
Thank's (if you try to help me)
Hope this help you (if I try to help you)
ruca

Nov 20 '05 #2
You can use a <location> element to set up different authentication for each
folder.

"ruca" <ru***@iol.pt> wrote in message
news:ee**************@TK2MSFTNGP12.phx.gbl...
Hi,

I have an application that I want to setup for each folder a web.config file with different authentication, but when I try to do that it gives me an
error saying that maybe that folder is not configured in IIS as virtual
directory.

In the root I don't want to have redirect to login page if i try to access
any file in the root.
If I want to access to any FOLDER present in application root I want to
redirect to the Login page with authentication Forms type.

I already try to put one we.config file in each folder but the error
described above occurs.
--
Programming ASP.NET with VB.NET
Thank's (if you try to help me)
Hope this help you (if I try to help you)
ruca

Nov 20 '05 #3
Still hapens the same error when I have this:

<location path="pss">
<system.web>
<customErrors mode="Off" />
<authentication mode="Forms">
<forms name="LoginPss" loginUrl="qsqLogin.aspx" />
</authentication>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</location>
--
Programming ASP.NET with VB.NET
Thank's (if you try to help me)
Hope this help you (if I try to help you)
ruca

"Rick Spiewak" <ri*********@mindspring.com> escreveu na mensagem
news:ON*************@TK2MSFTNGP11.phx.gbl...
You can use a <location> element to set up different authentication for each folder.

"ruca" <ru***@iol.pt> wrote in message
news:ee**************@TK2MSFTNGP12.phx.gbl...
Hi,

I have an application that I want to setup for each folder a web.config

file
with different authentication, but when I try to do that it gives me an
error saying that maybe that folder is not configured in IIS as virtual
directory.

In the root I don't want to have redirect to login page if i try to access any file in the root.
If I want to access to any FOLDER present in application root I want to
redirect to the Login page with authentication Forms type.

I already try to put one we.config file in each folder but the error
described above occurs.
--
Programming ASP.NET with VB.NET
Thank's (if you try to help me)
Hope this help you (if I try to help you)
ruca


Nov 20 '05 #4
Sorry but are child web.config files removed ?

Patrice

"ruca" <ru***@iol.pt> a écrit dans le message de
news:uG**************@TK2MSFTNGP12.phx.gbl...
Still hapens the same error when I have this:

<location path="pss">
<system.web>
<customErrors mode="Off" />
<authentication mode="Forms">
<forms name="LoginPss" loginUrl="qsqLogin.aspx" />
</authentication>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</location>
--
Programming ASP.NET with VB.NET
Thank's (if you try to help me)
Hope this help you (if I try to help you)
ruca

"Rick Spiewak" <ri*********@mindspring.com> escreveu na mensagem
news:ON*************@TK2MSFTNGP11.phx.gbl...
You can use a <location> element to set up different authentication for

each
folder.

"ruca" <ru***@iol.pt> wrote in message
news:ee**************@TK2MSFTNGP12.phx.gbl...
Hi,

I have an application that I want to setup for each folder a web.config
file
with different authentication, but when I try to do that it gives me
an error saying that maybe that folder is not configured in IIS as virtual directory.

In the root I don't want to have redirect to login page if i try to

access any file in the root.
If I want to access to any FOLDER present in application root I want to redirect to the Login page with authentication Forms type.

I already try to put one we.config file in each folder but the error
described above occurs.
--
Programming ASP.NET with VB.NET
Thank's (if you try to help me)
Hope this help you (if I try to help you)
ruca



Nov 20 '05 #5
What child files? I only have this one Web.config file.
--
Programming ASP.NET with VB.NET
Thank's (if you try to help me)
Hope this help you (if I try to help you)
ruca

"Patrice" <no****@nowhere.com> escreveu na mensagem
news:%2***************@TK2MSFTNGP10.phx.gbl...
Sorry but are child web.config files removed ?

Patrice

"ruca" <ru***@iol.pt> a écrit dans le message de
news:uG**************@TK2MSFTNGP12.phx.gbl...
Still hapens the same error when I have this:

<location path="pss">
<system.web>
<customErrors mode="Off" />
<authentication mode="Forms">
<forms name="LoginPss" loginUrl="qsqLogin.aspx" />
</authentication>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</location>
--
Programming ASP.NET with VB.NET
Thank's (if you try to help me)
Hope this help you (if I try to help you)
ruca

"Rick Spiewak" <ri*********@mindspring.com> escreveu na mensagem
news:ON*************@TK2MSFTNGP11.phx.gbl...
You can use a <location> element to set up different authentication
for
each
folder.

"ruca" <ru***@iol.pt> wrote in message
news:ee**************@TK2MSFTNGP12.phx.gbl...
> Hi,
>
> I have an application that I want to setup for each folder a

web.config file
> with different authentication, but when I try to do that it gives me an > error saying that maybe that folder is not configured in IIS as virtual > directory.
>
> In the root I don't want to have redirect to login page if i try to

access
> any file in the root.
> If I want to access to any FOLDER present in application root I want to > redirect to the Login page with authentication Forms type.
>
> I already try to put one we.config file in each folder but the error
> described above occurs.
> --
> Programming ASP.NET with VB.NET
> Thank's (if you try to help me)
> Hope this help you (if I try to help you)
> ruca
>
>



Nov 20 '05 #6

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

Similar topics

13
2978
by: Maxim Khesin | last post by:
I want to have a config file with my python proggie, satisfying the following requirements: 1) support key->(value, default) 2) simple and intuitive to read and edit 3) easyly readable into a...
4
3808
by: Fuzzyman | last post by:
There have been a couple of config file 'systems' announced recently, that focus on building more powerful and complex configuration files. ConfigObj is a module to enable you to much more *simply*...
2
933
by: Suresh Gladstone | last post by:
Hi, This is a bit with versioning and installation of the .NET dlls. I want to perform the following, 1. A third party application will be invoking my .NET dll through COM interop . For this I...
4
7857
by: grs | last post by:
Can a class library have a app.config file. Reason for asking is that the microsoft application blocks all read from myApp.exe.config. How can you use the application blocks if you do not have an...
22
2974
by: Daniel Billingsley | last post by:
Ok, I wanted to ask this separate from nospam's ridiculous thread in hopes it could get some honest attention. VB6 had a some simple and fast mechanisms for retrieving values from basic text...
6
2255
by: Rich | last post by:
Hello, I picked up this example on using the Reflection namespace for loading forms/classes on the fly at msdn http://msdn.microsoft.com/library/default.asp?...
13
507
by: Khodr | last post by:
Hello, I am using VS.NET 2003 and vb. I build my application MyApp and it generates MyApp.exe.config. So now MyApp.exe reads parameters from MyApp.exe.config. Great and no problem! I need to...
3
10578
by: Blasting Cap | last post by:
I am working on a web app that I want to be able to use a separate config file on, in addition to the web.config file that's already working in the application. If I put the following in the...
12
13406
by: dbuchanan | last post by:
Hello, (Is this the proper newsgroup?) === Background === I am building a solution with two projects. One project is my data access layer which contains my DataSet as an xsd file. The XSD...
5
7807
by: mmcd79 | last post by:
I built a VB.net application that makes use of a machine level DB connection string setting, and a user level starting location setting. The machine level setting and the default user based...
0
7130
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
7007
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...
0
7386
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
5468
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,...
1
4918
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...
0
3098
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
1427
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 ...
1
664
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
295
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...

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.