473,563 Members | 2,697 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 1283
normally there is only 1 web.config (root level)
in there you can have
<authenticati on mode="Forms">
<forms loginUrl="Secur e/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******** ******@TK2MSFTN GP12.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******** ******@TK2MSFTN GP12.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" />
<authenticati on mode="Forms">
<forms name="LoginPss" loginUrl="qsqLo gin.aspx" />
</authentication>
<authorizatio n>
<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*********@mi ndspring.com> escreveu na mensagem
news:ON******** *****@TK2MSFTNG P11.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******** ******@TK2MSFTN GP12.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******** ******@TK2MSFTN GP12.phx.gbl...
Still hapens the same error when I have this:

<location path="pss">
<system.web>
<customErrors mode="Off" />
<authenticati on mode="Forms">
<forms name="LoginPss" loginUrl="qsqLo gin.aspx" />
</authentication>
<authorizatio n>
<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*********@mi ndspring.com> escreveu na mensagem
news:ON******** *****@TK2MSFTNG P11.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******** ******@TK2MSFTN GP12.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******** *******@TK2MSFT NGP10.phx.gbl.. .
Sorry but are child web.config files removed ?

Patrice

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

<location path="pss">
<system.web>
<customErrors mode="Off" />
<authenticati on mode="Forms">
<forms name="LoginPss" loginUrl="qsqLo gin.aspx" />
</authentication>
<authorizatio n>
<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*********@mi ndspring.com> escreveu na mensagem
news:ON******** *****@TK2MSFTNG P11.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******** ******@TK2MSFTN GP12.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
2996
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 python datastructure (a dictionary?) 4) not requiring any heavy libraries needed (I am distributing my proggie as a py2exe executable and do not want...
4
3813
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* access config files. This is version 3, which is a big overhaul. It extends ConfigObj to reading config files with sections and various other...
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 have used Regasm and registered the assembly in the registry with CODEBASE option. eg: regasm myDll.dll /tlb:myDll.tlb /codebase
4
7861
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 app.config file. Wish someone from microsoft would answer this, I am at a loss. thanks grs
22
2988
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 files, which in turn could be simply and easily maintained with notepad. I understand the benefits of XML, really, but in the case of configuration...
6
2267
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? url=/library/en-us/dnadvnet/html/vbnet10082002.asp which uses a config file named "yourAppName.exe.config" which is an xml based config file that references dlls in
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 run the same program but with different configuration data. So I made a copy of MyApp.exe and MyApp.exe.config to put them in another folder and...
3
10585
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 web.config file (VS 2005, Framework 2.0), I can retrieve the values fine: <appSettings> <add key="fileInputFolder" value="C:\National City...
12
13415
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 file was built by draging tables from the Data Sources pane. Auto-generated code created the files associated wtih the XSD file (xss,
5
7833
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 setting is of course stored in the app.exe.config file located in the same directory as the exe. Upon closing the form, I save the user setting which...
0
7580
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...
0
7882
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. ...
0
8103
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7945
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...
1
5481
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...
0
5208
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3618
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1194
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
916
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...

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.