Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows Identity Foundation

Tags:

c#

wif

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?

like image 342
user959729 Avatar asked May 30 '26 06:05

user959729


1 Answers

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/

like image 113
KerSplosh Avatar answered Jun 01 '26 20:06

KerSplosh



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!