How to install the WIF 1.0 runtime on Windows 8 and Windows Server 2012

Windows Identity Foundation (WIF) 1.0 is a separate package that you can download from the Microsoft download site. It taps into the ASP.NET and WCF messaging pipelines using the extensibility models for both technologies. As Vittorio mentioned in his blog post, WIF and its classes have been fully integrated into the .NET 4.5 Framework, which comes with Windows8 and Windows Server 2012.

When you try to install the WIF 1.0 Installation packages onto a Windows 8 or Windows Server 2012 machine, you’ll receive the following error: Installer encountered an error: 0x80096002

image

If you need to run a .NET 3.5 or .NET 4.0 claims-aware applications on Windows 8 machines you can install WIF 1.0 runtime files, along with the Claims To Windows Token Service (c2wts), as an OS feature

Windows 8 WIF 1.0 installation

To install WIF 1.0 runtime and Claims To Windows Token Service, on Windows 8 machine, from the start screen type appwiz.cpl and press enter. This launches the Programs and Features control panel. On the left pane click the link for Turn Windows features on or off. Find and click, to check, the feature named Windows Identity Foundation 3.5 then click OK to install the feature.

image

Windows Server 2012 WIF 1.0 installation

For Windows Server 2012 machine the WIF 1.0 installation process is slightly different. From the Windows Server 2012 start screen type Server Manager and press enter. This will launch the Server Manager Dashboard. On the Dashboard click the Add roles and features option

image

This will launch the Add Roles and Features Wizard. Click Next to the default Before You Begin page. Select Role-based or feature-based installation type and click Next. Leave the Select a server from the server pool radio button selected and make sure your Windows Server 2012 server is highlighted in the Server Pool list then click Next. Then click Next to the Select Server Roles wizard page, as we want to install a feature not a server role. On the Select features wizard page, scroll down and click to select the Windows Identity Foundation 3.5 feature option and click Next.

image

On the Confirm installation selections page simply click the Install button to finish installation of the WIF 1.0 runtime, listed as Windows Identity Foundation 3.5 in the feature list.

After installation completes, you will find the Microsoft.IdentityModel.dll in the GAC, and the Claims To Windows Token Service executable file, c2wtshost.exe, in the directory C:\Program Files\Windows Identity Foundation\v3.5\. This will allow you to run your claims based applications that you developed with WIF 1.0 modules against .NET 3.5 or .NET 4.0 frameworks, on Windows 8 and Windows Server 2012 machines.

Cheers
-Todd Foust