473,327 Members | 1,936 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,327 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 1232
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:...
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: 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: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.