C# 将我的项目从Azure sdk 1.8.0.0移动到2.0.0.0后出现的问题

C# 将我的项目从Azure sdk 1.8.0.0移动到2.0.0.0后出现的问题,c#,asp.net-mvc-3,azure,C#,Asp.net Mvc 3,Azure,我正在将我的项目从Azure sdk 1.8.0.0移动到2.0.0.0 它在开发环境中工作得很好,但当我要在Azure门户上部署它时,它会给我带来错误。如下所示 发生未处理的异常。类型:System.IO.FileNotFoundException进程ID:3620 进程名称:WaIISHost 线程ID:5 \u 0中角色前端\u的AppDomain未处理异常 异常:无法加载文件或程序集“Microsoft.WindowsAzure.ServiceRuntime,版本=1.8.0.0,区域性

我正在将我的项目从Azure sdk 1.8.0.0移动到2.0.0.0

它在开发环境中工作得很好,但当我要在Azure门户上部署它时,它会给我带来错误。如下所示

发生未处理的异常。类型:System.IO.FileNotFoundException进程ID:3620
进程名称:WaIISHost
线程ID:5
\u 0中角色前端\u的AppDomain未处理异常
异常:无法加载文件或程序集“Microsoft.WindowsAzure.ServiceRuntime,版本=1.8.0.0,区域性=中性,PublicKeyToken=31bf3856ad364e35”或其依赖项之一。系统找不到指定的文件。
在DiagConfig.Config.GetRoleInstanceDiagMonitor()中
在Frontend.WebRole.OnStart()处
在Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment.InitializeRoleInternal(RoleType RoleTypeNum)上
在Microsoft.WindowsAzure.ServiceRuntime.Implementation.Loader.RoleRuntimeBridge.b_u0()中
位于System.Threading.ExecutionContext.runTryCode(对象用户数据)
在System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode代码、CleanupCode backoutCode、Object userData)中运行
在System.Threading.ExecutionContext.Run(ExecutionContext ExecutionContext,ContextCallback回调,对象状态,布尔ignoreSyncCtx)
在System.Threading.ExecutionContext.Run(ExecutionContext ExecutionContext,ContextCallback回调,对象状态)
位于System.Threading.ThreadHelper.ThreadStart()处

您可以在这方面提供帮助吗?

您可能已经将您的云项目更新为2.0版,但是您将要部署到Azure的项目仍然引用了旧的Azure 1.8


尝试搜索所有1.8引用,如果您正在使用nuget,您可以通过右键单击解决方案文件来执行“管理nuget packages for solution”,并将所有azure引用更新为最新版本

您可能需要在web.config中更新以指向“新”程序集。在工作子文件夹中的所有文件中搜索“1.8”如何?这样,您将找到未能更新的引用。