August 27, 2010

IIS Logon failure: user account restriction

While browsing WebApp from IIS you can come across the below error
Error : iis Logon failure: user account restriction. Possible reasons are blank passwords not allowed, logon hour restrictions, or a policy restriction has been enforced.

Solution :
1.) Go to run type regedit.exe
2.) Go to  HKLM\System\CurrentControlSet\Control\Lsa\limitblankpassworduse
3.) change this value  from 1 to 0

Try to browse again You can come across the below error 
Error : ServerName/ASPNET User Can not access database
Solution 
1.) Go to Directory Security tab of IIS and click on Edit
 2.)Change the user name which is allowed to access the databse and check the IntegratedWindowsAuthentication mode.(If browsing in local Environment)

No comments:

Post a Comment