473,289 Members | 1,940 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,289 software developers and data experts.

Anonymous and authenticated access with multilpe web.config files

I have a web project in which I would like to structure my top level
directory to provide a user with anonymous access and a subdirectory for
secure access that uses forms-based authentication. I'm under the impression
that I need 2 web.config files: one in my top level directory for anonymous
access and one in my underlying secure directory for authenticated access.
Can anyone point e to some specific examples of how to do this, what issues
are involved, and how to set up virtual directories for each in IIS? I'd
like to structure my code all in one web site (if that is possible) using
Visual Studio 2.0.

Thank you,

Tim
--
Tim
May 17 '06 #1
1 1230
You will likely get away with one web.config, and something called the
location element, but its not quite that straightforward.

Take a read of this:
http://www.howtodothings.com/compute...ith-roles.html

--
Regards

John Timney
Microsoft MVP

"AAOMTim" <AA*****@discussions.microsoft.com> wrote in message
news:BE**********************************@microsof t.com...
I have a web project in which I would like to structure my top level
directory to provide a user with anonymous access and a subdirectory for
secure access that uses forms-based authentication. I'm under the
impression
that I need 2 web.config files: one in my top level directory for
anonymous
access and one in my underlying secure directory for authenticated access.
Can anyone point e to some specific examples of how to do this, what
issues
are involved, and how to set up virtual directories for each in IIS? I'd
like to structure my code all in one web site (if that is possible) using
Visual Studio 2.0.

Thank you,

Tim
--
Tim

May 17 '06 #2

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

Similar topics

3
by: Mike Hutton | last post by:
Hi, I have tried to keep things simple. Not simple enough, obviously. I have a set of intranet ASP.NET pages which access a SQL back-end through the normal SQLConnection stuff. I want to use...
8
by: ajamrozek | last post by:
I have an ASPX page that needs to display data from an Access DB that resides on a network resource other than the running server. To access the web page itself, I need IIS to have anonymous login...
0
by: cmrchs | last post by:
Hi, Some illogical scenario... I set the IIS-authentication method for the site I try to access to 'Anonymous'. web.config-entries : <authentication mode="None" />...
2
by: pv | last post by:
Hi everyone, I need help with following scenario, please: Users are accessing same web server from intranet (users previously authenticated in Active Dir) and from extranet (common public...
10
by: et | last post by:
I have an asp.net program that uses a connection string, using integrated security to connect to a sql database. It runs fine on one server, but the other server gives me the error that "Login...
2
by: Rodusa | last post by:
I am trying to Synchronize anonymous users with authenticated uses using Profile_MigrateAnonymous. However Profile_MigrateAnonymous only carries information in one direction, for instance, if I...
1
by: Kjell Kristiansson | last post by:
In developing a solution I ran into a problem where I have found no acceptable solution. The problem is combining users with anonymous login and users logged in to a domain in the same .aspx...
2
by: matthewdavis1980 | last post by:
Hi all, I have a scenario and maybe you guys can help me out. I'm working with asp.net 2.0 and have created a website under a website template. My ultimate goal is to have the website...
2
by: shapper | last post by:
Hello, I am trying to get an anonymous user using the following: MembershipUser user = System.Web.Security.Membership.GetUser(); However, user is null. On my Web.Config I have the following:...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

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.