[英]Azure In Role Caching Doesn't start on server with “Not running in a hosted service or the Development Fabric.”
[英]Not running in a hosted service or the Development Fabric. Error in deployed version
我在Web角色上部署的應用程序中具有診斷跟蹤偵聽器。 通過模擬器運行時,一切在開發環境中都可以正常工作。 但是當部署在azure上而不在托管服務或Development Fabric中運行時,我收到以下錯誤。 說明:執行當前Web請求期間發生未處理的異常。 請查看堆棧跟蹤,以獲取有關錯誤及其在代碼中起源的更多信息。
異常詳細信息:System.InvalidOperationException:不在托管服務或開發結構中運行。
源錯誤:
當前Web請求的執行期間生成了未處理的異常。 可以使用下面的異常堆棧跟蹤來標識有關異常的來源和位置的信息。
堆棧跟蹤:
[InvalidOperationException:不在托管服務或開發結構中運行。] Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitor.GetDefaultStartupInfoForCurrentRoleInstance()+518 Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitorTraceListener..ctor()+34
[ConfigurationErrorsException:無法創建Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitorTraceListener,Microsoft.WindowsAzure.Diagnostics,Version = 2.1.0.0,Culture = neutral,PublicKeyToken = 31bf3856ad364e35。] initializeData)+9004943 System.Diagnostics.TypedElement.BaseGetRuntimeObject()+110 System.Diagnostics.ListenerElement.GetRuntimeObject()+989 System.Diagnostics.ListenerElementsCollection.GetRuntimeObject()+252 System.Diagnostics.TraceInternal.get_Listeners()+331系統。 Diagnostics.TraceInternal.WriteLine(字符串消息)+161 AVAWebApplication.Global.Application_Start(對象發送方,EventArgs e)+28
[HttpException(0x80004005):無法創建Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitorTraceListener,Microsoft.WindowsAzure.Diagnostics,Version = 2.1.0.0,Culture = neutral,PublicKeyToken = 31bf3856ad364e35。] System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext上下文,HttpApplication app)+581 System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext,HttpContext上下文,MethodInfo []處理程序)+179 System.Web.HttpApplication.InitSpecial(HttpApplicationState狀態,MethodInfo []處理程序,IntPtr appContext,HttpContext上下文)+322 System .Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext,HttpContext上下文)+384 System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext)+397
[HttpException(0x80004005):無法創建Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitorTraceListener,Microsoft.WindowsAzure.Diagnostics,Version = 2.1.0.0,Culture = neutral,PublicKeyToken = 31bf3856ad364e35。] System.Web.HttpRuntime.FirstRequestInit(HttpContext上下文)+ 678 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext上下文)+159 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr,HttpContext上下文)+810
有人可以幫忙嗎?
DotNetOpenAuth.Logger似乎與WAD(Windows天藍色診斷程序)沖突。 另請參閱此文章: 未在托管服務或開發結構中運行(生產,而非調試/本地)
從web.config刪除跟蹤偵聽器:
<trace>
<listeners>
<add type="Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitorTraceListener, Microsoft.WindowsAzure.Diagnostics, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" name="AzureDiagnostics">
<filter type="" />
</add>
</listeners>
</trace>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.