p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   ASP.NET 2.0 Professional (http://p2p.wrox.com/forumdisplay.php?f=215)
-   -   Problem with Form based Authentication (http://p2p.wrox.com/showthread.php?t=58236)

shujamughal May 23rd, 2007 06:00 AM

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

    <authentication mode="Forms">
      <forms name=".COOKIEDEMO"
      <deny users="?" />


 FormsAuthentication.RedirectFromLoginPage(UserEmai l.Value,

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


planoie May 23rd, 2007 08:42 AM

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".


shujamughal May 24th, 2007 12:20 AM

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

shujamughal May 25th, 2007 05:34 AM

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

All times are GMT -4. The time now is 09:29 PM.

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