Quantcast
Channel: Claims based access platform (CBA), code-named Geneva forum
Viewing all articles
Browse latest Browse all 2535

ADFS 2.0 Development: "Could not load file or assembly 'Microsoft.IdentityServer.Compression' or one of its dependencies. An attempt was made to load a program with an incorrect format"

$
0
0

Background:

  1. I'm trying to do ADFS 2.0 development (how to bypass Home Realm Discovery if you want to know :-)
  2. To do this, I have installed VS 2010 on a Windows Server 2008 R2 (running Windows 7).
  3. I have created a VS "project" with the Microsoft-provided source code in IIS->ADFS->ls directory.
  4. I've added references to the Microsoft.IdentityServer and Microsoft.IdendityServer.Compression dlls
  5. In the Project Properties tab I have set "Platform Target" to "Any CPU"
  6. I then tried to compile the "vanilla" ADFS code.

Problem:

  1. I'm getting the compile error: "Could not load file or assembly 'Microsoft.IdentityServer.Compression' or one of its dependencies. An attempt was made to load a program with an incorrect format"
  2. I've looked around the forums and haven't found an answer that sufficiently pertains to my issue.

Questions:

  1. Why am I getting this error?
  2. How can I fix this?
  3. Has anyone successfully compiled the "vanilla" ADFS code provided by Microsoft in the IIS->ADFS->ls directory? How did you do this?

Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>