简体   繁体   中英

How to configure IIS authentication password?

I am developing a C# / ASP.NET web application in VS 2008 on a 32-bit XP. I created a Login.aspx file for the user to enter a user name and password initially before seeing any data. This functionality works now from VS. I added users and roles by entering ASP.NET Configuration.

However, after publishing to IIS 6.0, the password does not work there. How do I configure Directory Security in IIS for the same user name and password to work?

If you're using forms authentication the user information is probably on the database. This is not connected with IIS so I can think in 2 options

1) You're pointing to a different database that doesn't have the user you're logging in with.
2) An exception was threw related to the authentication process and on the exception handling code you're showing the message "invalid password".

EDIT

Here you have a complete example about how to use forms authentication with membershipprovider

http://msdn.microsoft.com/en-us/library/ms998347.aspx

and here some more links about forms authentication

http://msdn.microsoft.com/en-us/library/xdt4thhy.aspx
http://msdn.microsoft.com/en-us/library/aa480476.aspx

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM