gpt4 book ai didi

azure - 我无法启动 Azure 诊断监视器

转载 作者:行者123 更新时间:2023-12-04 10:57:36 26 4
gpt4 key购买 nike

我正在尝试使用单个 asp.net 应用程序在云解决方案中测试 Azue 诊断监视器。

每次尝试启动诊断监视器时都会遇到异常:

        CloudStorageAccount account = CloudStorageAccount.Parse("UseDevelopmentStorage=true");

Write(account.TableEndpoint.AbsoluteUri);

// Get default initial configuration.
var config = DiagnosticMonitor.GetDefaultInitialConfiguration();

config.Logs.ScheduledTransferLogLevelFilter = LogLevel.Undefined;
config.Logs.ScheduledTransferPeriod = TimeSpan.FromSeconds(5);

// Start the diagnostic monitor with the modified configuration.
DiagnosticMonitor.Start(account, config); // Exception

异常说:

System.ArgumentException was unhandled by user code
Message=Directory C:\Users\Me\Documents\Visual Studio 2010\Projects\CloudDebuggingTest\CloudDebuggingTest\bin\Debug\CloudDebuggingTest.csx\roles\CloudDebuggingTest.Web\diagnostics\x64\monitor does not exist.
Source=Microsoft.WindowsAzure.Diagnostics
StackTrace:
at Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitor.ValidateStartupInfo(DiagnosticMonitorStartupInfo startupInfo) in :line 0
at Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitor.StartWithExplicitConfiguration(DiagnosticMonitorStartupInfo startupInfo, DiagnosticMonitorConfiguration initialConfiguration) in :line 0
at Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitor.Start(CloudStorageAccount storageAccount, DiagnosticMonitorConfiguration initialConfiguration) in :line 0
at CloudDebuggingTest.Web._Default.StartDiagnostics() in C:\Users\Me\Documents\Visual Studio 2010\Projects\CloudDebuggingTest\CloudDebuggingTest.Web\Default.aspx.cs:line 48
at CloudDebuggingTest.Web._Default.Page_Load(Object sender, EventArgs e) in C:\Users\Me\Documents\Visual Studio 2010\Projects\CloudDebuggingTest\CloudDebuggingTest.Web\Default.aspx.cs:line 19
at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
InnerException:

我不知道我错过了什么,我一直在检查一些链接,他们正是这样做的。有什么想法吗?

干杯。

最佳答案

这一定是在跟我开玩笑:|

问题是路径太长,我把项目移到D:\然后就可以正常工作了@.@

当我进入一篇讨论路径长度限制的文章时,我偶然找到了解决方案。

http://markegilbert.wordpress.com/2010/11/05/i-just-hit-my-head-on-a-cloud-microsoft-azure-and-full-path-limits/

我也撞到头了:(

关于azure - 我无法启动 Azure 诊断监视器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4994723/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com