user959729
user959729

Reputation: 1177

Windows Identity Foundation

I am using Windows Identity Foundation Framework 3.5. I have installed this on my dev box and I have everything working. My problem is the production server.

Is there a way to NOT install the framework on the production server and still have the MVC application work? Right now I am receiving the error:

Type is not resolved for member Microsoft.IdentityModel.Claims.ClaimsPrincipal,Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.

This is expected, since the framework is not there and obviously the simple answer is to install the framework, but this is out of my control.

Things I have tried, add the references Microsoft.IdentityModel.dll, Microsoft.IdentityModel.WindowsTokenService.dll, Microsoft.IdentityModel.resources.dll, and Microsoft.IdentityModel.WIndowsTokenService.resources.dll directly to the project and set them to copy to the output directory. This does not work.

Any suggestions?

Upvotes: 3

Views: 1278

Answers (2)

webwires
webwires

Reputation: 1907

You can add the DLLs to the bin directory of the MVC application.

Upvotes: 0

KerSplosh
KerSplosh

Reputation: 466

In the hope that this will help someone else with the same problem, the Windows Identity Foundation is now available as a nuget package, you can install using:

Install-Package Microsoft.IdentityModel 

http://www.nuget.org/packages/Microsoft.IdentityModel/

Upvotes: 1

Related Questions