Friday, February 24, 2012

How to stop IIS asking authentication for default website on localhost

There are various reasons for this. pl go through the lines below:-
1.   NT file permissions problem. IUSR_ needs to have file system permissions to read whatever file you're requesting (like /inetpub/wwwroot/index.htm). If you still have trouble, check the IIS logs, typically at \windows\system32\logfiles\W3SVC*.
2.
Click Start>control panel>Administrative Tools>Internet Information Services.Expand the left tree, right-click your WebSite>Properties Click on Directory Security, then in "Anonymous access and authentication control" click on Edit Enable Anonymous access>browse> enter the credentials of the admin (like Administrator) (check names),> Click OK. Apply the settings and it should work fine.
3.  It could be because of couple of Browser settings. Try with these options checked. Tools > Internet Options > Advanced > Enable Integrated Windows Authentication (works with Integrated Windows Authentication set on IIS) Tools > Internet Options> Security > Local Intranet > Custom Level > Automatic Logon Worst case, try adding localhost to the Trusted sites. If you are in a network, you can also try debugging by getting a network trace. Could be because of some proxy trying to authenticate.
4. IIS uses Integrated Authentication and by default IE has the ability to use your windows user account...but don't worry, so does Firefox but you'll have to make a quick configuration change.
1) Open up Firefox and type in about:config as the url
2) In the Filter Type in ntlm
3) Double click "network.automatic-ntlm-auth.trusted-uris" and type in localhost and hit enter
4) Write Thank You To Blogger
As Always, Hope this helped you out.5.  Is the UserID IUSR_computername?  If so ... Click Start>Administrative Tools>Internet Information Services. Expand the left tree, right-click your WebSite>Properties. Click on Directory Security, then in "Anonymous access and authentication control" click on Edit. Tick "Allow IIS to control password", then OK and come out of IIS.