Click here to Skip to main content
13,403,102 members (53,762 online)
Rate this:
Please Sign up or sign in to vote.
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.
Posted 13-Feb-13 0:23am
CShubham 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
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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.
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web04 | 2.8.1802120.2 | Last Updated 16 Feb 2013
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100