繁体   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