Wednesday, February 3, 2010

Missing Windows Authentication provider For IIS 7 on Windows Server 2008

This article is extremely helpful if you're to support IIS 7.0 for your IIS 6.0 application that uses Windows Authentication. Interestingly, IIS 7.0 on Windows 2008 does not come with Windows Authentication, so we have to install it before we deploy the product.

 This is from http://weblogs.asp.net/zroiy/archive/2008/08/17/missing-windows-authentication-provider-for-iis-7-on-windows-server-2008.aspx

In case your Windows Server 2008 machine doesn't include a windows authentication scheme (see image below), do the following
image
Open up Server Manager (one way to do this is by right clicking the computer node from within the start menu and choosing  Manage). Expend the Roles node. Right click the Web Server (IIS) and choose Add Role Services. You'll get the following wizard, just scroll down a bit and check Windows Authentication under the security node.
image
If you've done everything right , you should also get the following option in IIS authentication pane. If it doesn't, try running appcmd, or restarting. Here's the appcmd command you should run:
appcmd set config /section:windowsAuthentication /enabled:true

image

No comments:

Post a Comment