2015-09-03 112 views
0

在Azure上我收到以下錯誤System.IO.FileNotFoundException:未能加載文件或程序集「Microsoft.WindowsAzure.ServiceRuntime,版本= 2.5.0.0

System.IO.FileNotFoundException:未能加載文件或程序程序集'Microsoft.WindowsAzure.ServiceRuntime,Version = 2.5.0.0,Culture = neutral,PublicKeyToken = 31bf3856ad364e35'或它的一個依賴項。該系統找不到指定的文件。 文件名:'Microsoft.WindowsAzure.ServiceRuntime,Version = 2.5.0.0,Culture = neutral,PublicKeyToken = 31bf3856ad364e35' at redacted.Encryption.EncryptionManager.get_storageConectionString() at redacted..ctor()in <>:line 49

警告:裝配綁定日誌記錄已關閉。 要啓用程序集綁定失敗日誌記錄,請將註冊表值[HKLM \ Software \ Microsoft \ Fusion!EnableLog](DWORD)設置爲1. 注意:與程序集綁定失敗日誌記錄相關的性能受損。 要關閉此功能,請刪除註冊表值[HKLM \ Software \ Microsoft \ Fusion!EnableLog]。

回答

0

答案是我已更新到azure工具2.7,並引用了2.5 dll版本。

1)刪除項目中2.5 dll的引用(或者.csproj文件,如果需要的話),並添加2.7 System.WindowsAzure.ServiceRuntime dll的引用。

2)重新部署。

3)利潤。

相關問題