However, when running the website using IIS Express, the Login Prompt keeps coming up. I thought this nuisance was due to the fact that my computer was not a member of any domain and therefore, the browser is not treating my request as intranet traffic. When I enter my local Windows user name and password, the IIS Express lets me in and I see my MVC4 website loaded in IE properly. Still, having to enter my credential each time I press Ctrl + F5 is a nuisance to take care of for my productivity.
Workaround:
- Run IE. Go to [Tools] --> [Internet Options] menu. Select [Security] tab.
- Choose [Trusted Sites] and click the [Sites] button.
- Add "http://localhost" to your trusted website. Click [close] button.
- When back to the [Security] tab, make sure the [Trusted sites] is still selected.
- Click [Custom level...] button while under the [Trusted sites] context.
- Scroll down to "User Authentication". Select "Automatic logon with current user name and password"
Through another test, I confirmed that when you develop a intranet website using VS 2012 and IIS Express on a computer that is a member of an Active Directory domain, you do not run into this issue of unnecessary login prompt. This issue only happens when you develop on a stand-alone Windows machines.
No comments:
Post a Comment