Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
| Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional 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
  #1 (permalink)  
Old May 23rd, 2007, 06:00 AM
Registered User
 
Join Date: May 2007
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem with Form based Authentication



 Hi All

I have a problem with form based authentication. i have made an web application using vs2005 then i publish this application to a folder then i create a virtual directory that point to the folder that contains publish website. now the problem is that when i try to open this website from network computers by giving correct username and pass then it did not redirect to home page. it is still on login page, i did not use login control i use the simple textboxes and made following configuration




<configuration>
  <system.web>
    <authentication mode="Forms">
      <forms name=".COOKIEDEMO"
             loginUrl="login.aspx"
             protection="All"
             timeout="30"
             path="/"/>
    </authentication>
    <authorization>
      <deny users="?" />
    </authorization>
  </system.web>
</configuration>

and

 FormsAuthentication.RedirectFromLoginPage(UserEmai l.Value,
                                                true);

can anybody help me in this matter. it work fine on local computer

Bye


  #2 (permalink)  
Old May 23rd, 2007, 08:42 AM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Are you getting a login screen in the browser or as a popup dialog off the browser?

This sounds like a security setting in IIS. By default, new web sites and virtual directories in IIS are set to "Integrated Windows authentication". This prevents a user from even BROWSING a site/directory until they have provided a valid windows user login/password. This has nothing to do with the site login you programmed. You need to allow anonymous access to the site so that anyone can browse the pages.

Open IIS Manager, choose properties from the context menu of the virtual directory in question, select the "Directory Security" tab, under "Anonymous access and authentication control" click the "Edit" button, uncheck "Integrated Windows authentication" and check "Anonymous access".

-Peter
  #3 (permalink)  
Old May 24th, 2007, 12:20 AM
Registered User
 
Join Date: May 2007
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for reply
i am using the vs2005 web browser control throughout my application. actually wht i done. i made an website then i made an window base project in which i put web browser control in a form then i use this window appliction through network computer to access my website. Sometimes it work fine through network computer but once the problem come then it will never login me.if i give wrong info then it tell me about it but in case of wrong info it does not do anything

  #4 (permalink)  
Old May 25th, 2007, 05:34 AM
Registered User
 
Join Date: May 2007
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I also have perform these setting that u told me but it is still not working. any other suggestion?



Similar Threads
Thread Thread Starter Forum Replies Last Post
Form-based Authentication Error lionstudio JSP Basics 2 August 4th, 2006 09:05 AM
Form based authentication.... avanishp General .NET 2 June 17th, 2005 03:11 AM
Form based authentication with WLS7 jcgarciap J2EE 1 March 9th, 2005 01:15 PM
problem in form authentication simmi BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 0 February 15th, 2005 02:14 PM
form-based authentication using a database waru BOOK: Beginning ASP.NET 1.0 2 May 28th, 2004 10:37 PM





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