相关疑难解决方法(0)

部署到云时无法加载文件或程序集'Microsoft.WindowsAzure.ServiceRuntime,Version = 1.8.0.0

我有一个在本地运行良好的MVC 4应用程序但在部署到Azure时失败并显示此消息:

[FileNotFoundException: Could not load file or assembly Microsoft.WindowsAzure.ServiceRuntime, Version=1.8.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.] Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitor.GetDefaultStartupInfoForCurrentRoleInstance() +0 Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitorTraceListener..ctor() +40

我已经确定我引用了Microsoft.WindowsAzure.ServiceRuntime 1.8版并将其设置为复制本地.

azure azure-web-roles

16
推荐指数
2
解决办法
4万
查看次数

标签 统计

azure ×1

azure-web-roles ×1