Click here to Skip to main content
15,042,401 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
so i have a website which i am trying to host to my local IIS server. i have used default ASP login template controls in my development environment which were working fine but the moment i hosted my website on IIS i am unable to login. i am getting an error "Your login attempt was not successful. Please try again." please help me how to fix this error. my login data is stored in default aspnet.mdf.
[no name] 13-Feb-13 5:39am
hi !!! first make sure your code is right for login!!!
if is it ok so check IIS are you deploy your website???
a2ulthakur 13-Feb-13 5:47am
ya my code is right as it is working correctly in development environment

from OnAuthenticate event handler when AuthenticateEventArgs.Authenticate value is false then this message came. It indicate that your provided information is not a valid user. You just write some log to make sure you programmatically set true value in Authenticate property. After iis deployment you check the log file. Another thing just Make sure your iis web site Anonymous authentication is enabled.
it was just an permission problem in iis which i solved by giving IIs users permission to write in database.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900