Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 11th, 2004, 02:51 PM
Registered User
 
Join Date: Jun 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to set up authentication?

Hi,
I always get error msg when runing my application with the following
part of my web.config, which was used to set up authentication for my asp.net application:
<authentication mode="Forms">
<forms loginUrl="TestAsp/Login.aspx" />
</authentication>
<authorization>
<deny users="?" />
</authorization>

*TestAsp is my application name in localhost.
** I have set my IIS with "Integrated Windows autherization.

Why?
 
Old June 11th, 2004, 07:09 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Hello,

You have to allow anonymous access for forms-based authentication to work, and specify:

<deny users="?" />
<allow users="*" />

There are other attributes you can set for forms-based authentication.

If you can use windows-integrated security, is your app an intranet application? If so, why not use <authentication mode="Windows"/>?

Brian





Similar Threads
Thread Thread Starter Forum Replies Last Post
XPath: set operation with a disjoint node set rich_unger XSLT 7 May 6th, 2008 09:24 AM
Authentication koco ASP.NET 2.0 Professional 1 August 21st, 2007 09:02 AM
how i set charcter set to a connection yoord BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 1 April 23rd, 2005 07:47 AM
Authentication speedyH Beginning PHP 1 September 25th, 2004 11:34 AM
How to set DOM character set sonicDace XML 0 May 27th, 2004 08:52 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.