Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET SQL-Server IIS
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 12-Feb-13 23:23pm
Comments
CShubham at 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 at 13-Feb-13 5:47am
   
ya my code is right as it is working correctly in development environment
Rate this: bad
good
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.
  Permalink  
Rate this: bad
good
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.
  Permalink  

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



Advertise | Privacy | Mobile
Web01 | 2.8.141022.2 | Last Updated 16 Feb 2013
Copyright © CodeProject, 1999-2014
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