簡體   English   中英

System.IO.FileNotFoundException:無法加載文件或程序集'Microsoft.WindowsAzure.ServiceRuntime,版本= 2.5.0.0

[英]System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.WindowsAzure.ServiceRuntime, Version=2.5.0.0

在Azure上,我收到以下錯誤

System.IO.FileNotFoundException:無法加載文件或程序集“ Microsoft.WindowsAzure.ServiceRuntime,版本= 2.5.0.0,區域性=中性,PublicKeyToken = 31bf3856ad364e35”或其依賴項之一。 該系統找不到指定的文件。 文件名:'Microsoft.WindowsAzure.ServiceRuntime,Version = 2.5.0.0,Culture = neutral,PublicKeyToken = 31bf3856ad364e35'at redacted.Encryption.EncryptionManager.get_storageConectionString()at redacted..ctor()in <>:第49行

WRN:程序集綁定日志記錄已關閉。 要啟用程序集綁定失敗日志記錄,請將注冊表值[HKLM \\ Software \\ Microsoft \\ Fusion!EnableLog](DWORD)設置為1。注意:程序集綁定失敗日志記錄會降低性能。 要關閉此功能,請刪除注冊表值[HKLM \\ Software \\ Microsoft \\ Fusion!EnableLog]。

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

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

2)重新部署。

3)利潤。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM