我正在爲我的MVC3 web應用程序使用ACS身份驗證。它在本地計算機上工作得非常好。但是,當我將此上載到Azure時,出現此錯誤。我設置CopyLocal = True時,請幫助無法在azure上發現程序集「Microsoft.IdentityModel」錯誤
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.
是的,Azure機器是以.NET 3.5/4.0爲基礎的Windows 2008或Windows 2008 R2機器。他們沒有像WIF那樣的額外運行時間。 你的應用程序顯然是通過ACS或其他方式進行身份驗證。 請確保通過將「複製本地」屬性設置爲true來爲該dll引用包含此程序集。 – ryancrawcour 2012-04-15 21:34:05