Background:
- I'm trying to do ADFS 2.0 development (how to bypass Home Realm Discovery if you want to know :-)
- To do this, I have installed VS 2010 on a Windows Server 2008 R2 (running Windows 7).
- I have created a VS "project" with the Microsoft-provided source code in IIS->ADFS->ls directory.
- I've added references to the Microsoft.IdentityServer and Microsoft.IdendityServer.Compression dlls
- In the Project Properties tab I have set "Platform Target" to "Any CPU"
- I then tried to compile the "vanilla" ADFS code.
Problem:
- 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"
- I've looked around the forums and haven't found an answer that sufficiently pertains to my issue.
Questions:
- Why am I getting this error?
- How can I fix this?
- Has anyone successfully compiled the "vanilla" ADFS code provided by Microsoft in the IIS->ADFS->ls directory? How did you do this?