Could not find Microsoft.IdentityModel build error on azure

I am using ACS authentication for my MVC3 web application. I work perfectly on my local machine. But when I upload it to Azure.I get this error. I set CopyLocal = True, please help

Unable to find assembly 'Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.Runtime.Serialization.SerializationException: Unable to find assembly 'Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  
+3
source share
3 answers

More info on this. Copy local, i.e. that Microsoft.IdentityModel.dll is located in the bin directory will work if your code does not use the RoleEnvironment API. If so, you will encounter the following known issue:

http://msdn.microsoft.com/en-us/library/windowsazure/hh403974.aspx

Microsoft.IdentityModel GAC Azure VM. . :

http://blogs.infosupport.com/adding-assemblies-to-the-gac-in-windows-azure/

+5

Microsoft. hh403974.aspx - , , - , .

"Microsoft.IdentityModel" RoleEnvironmentAPI

: SDK1.3 , - IIS Windows Identity Foundation.

: RoleEnvironment .

[SerializationException: "Microsoft.IdentityModel, Version = 3.5.0.0, Culture = neutral, PublicKeyToken = 31bf3856ad364e35".]

: Windows Identity Foundation Azure.

: , Windows Identity Foundation .

. Azure.

+3

Your Azure machine is probably missing WIF runtime .

+1
source

All Articles