我正在将我的项目从 Azure sdk 1.8.0.0 移动到 2.0.0.0
它在开发环境中运行良好,但是当我要在 Azure 门户上部署它时,它给了我错误。如下图
An unhandled exception occurred. Type: System.IO.FileNotFoundException Process ID: 3620
Process Name: WaIISHost
Thread ID: 5
AppDomain Unhandled Exception for role Frontend_IN_0
Exception: 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.
at DiagConfig.Config.GetRoleInstanceDiagMonitor()
at Frontend.WebRole.OnStart()
at Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment.InitializeRoleInternal(RoleType roleTypeEnum)
at Microsoft.WindowsAzure.ServiceRuntime.Implementation.Loader.RoleRuntimeBridge.<InitializeRole>b__0()
at System.Threading.ExecutionContext.runTryCode(Object userData)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
你能帮忙吗?