Owkay, I’ve got a good one for you this time.
And all it takes is checking a checkbox, just one checkbox!
That’s the solution to a problem with which I’ve been struggling yesterday. What problem? Let me tell you.
I’ve been installing Master Data Services (MDS) on my SQL Server 2008 R2. This feature will not only create a database but also a website which you can use to manage MDS. And it’s the website part that I had a problem with. Everything installed just fine but when I tried to load the site in Internet Explorer 8 on my Windows 7 64-bit machine, I got the following error:
HTTP Error 401.2 – Unauthorized
You are not authorized to view this page due to invalid authentication headers.
Great, an authentication problem – aren’t those our favorite ones? And like any decent developer, I didn’t waste my time reading all the text on the error page and started investigating the issue. I had a look at the settings of the Application Pool and those of the Default Web Site. I also tried changing the security settings in IE. At the end I think I have tried every possible setting in IIS 7.5 (which is the version that ships with Windows 7), but I kept getting that same error.
I let some time pass (not on purpose but because we were going to visit my parents-in-law) and in the evening I decided to have another look. This time I took the effort of reading everything mentioned in the error:
Do you see that blue link down at the bottom, which I’ve marked with a red rectangle? That’s where I got the answer from! Clicking it opened up the following Microsoft Support page: Error message when you try to visit a Web page that is hosted on IIS 7.0: "HTTP Error 401.2 – Unauthorized".
Sounds familiar doesn’t it? Okay, it’s meant for IIS 7.0 but works for 7.5 as well.
I solved my problem by applying Resolution 1. In short: IIS was running without the Windows Authentication module installed! Apparently that is not installed by default when you activate Internet Information Services through the “Turn Windows features on or off” window. Here’s a screenshot showing what needs to be added:

Once that was set up I was able to load the MDS application:

If you’re looking for instructions on how to install and configure Master Data Services, have a look at this article at the Master Data Services Team blog.
(Do I need to mention that this was the first-ever web application that I tried running on Windows 7?
)
Have fun!
Valentino.
Tags: IIS, IIS 7.5, Master Data Services, MDS, SQL Server 2008 R2, Windows 7
-
H i ,
when i browse , i am getting one error,
Internet Explorer cannot display the webpage
What you can try:
Diagnose Connection ProblemsMore information
This problem can be caused by a variety of issues, including:
•Internet connectivity has been lost.
•The website is temporarily unavailable.
•The Domain Name Server (DNS) is not reachable.
•The Domain Name Server (DNS) does not have a listing for the website’s domain.
•There might be a typing error in the address.
•If this is an HTTPS (secure) address, click Tools, click Internet Options, click Advanced, and check to be sure the SSL and TLS protocols are enabled under the security section.For offline users
You can still view subscribed feeds and some recently viewed webpages.
To view subscribed feeds1.Click the Favorites Center button , click Feeds, and then click the feed you want to view.
To view recently visited webpages (might not work on all pages)
1.Click Tools , and then click Work Offline.
2.Click the Favorites Center button , click History, and then click the page you want to view.plz help me if you can . Thank you !!
-
Great post!
I was trying to solve a similar problem which was caused by the fact that Windows Authentication wasn’t installed. Many thanks!
-
Thanks, been getting kinda desperate with this one.
-
Hey man,
This has been really helpful to me in addressing my clients issue.
Thanks a lot.
-
Pingback from A Developer's Blog · 2011 on January 5, 2011 at 4:19 PM
-
Does not work for Windows 7 home premium!
-
Thanks, you saved my weekend
-
Helpful step-by-step guide! Thanks for sharing this one.
-
Great guide! Very useful in solving authentication problem.
T. Charles, Stuart FL criminal defense attorney
-
It worked great for me.
-
dude thank you so much for this user guide. very helpful
-
Thanks so much!!
I had googled many pages trying to find out what was wrong. And such a silly thing that the Windows authentication doesn’t automatically install!!
-
Thanks for saving me a bunch of time!
-
Hi i have the same problem
the difference is mysite is running on the local (iis 7.5 express) and i am using form authentication..
thanks..






18 comments
Comments feed for this article
Trackback link: http://blog.hoegaerden.be/2010/02/14/iis-7-5-and-windows-authentication/trackback/