I can not start Azure Diagnostic Monitor

I am trying to test the Azue diagnostic monitor in a cloud solution with a single asp.net application.

I get an exception every time I try to start the diagnostic monitor:

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 

An 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: 

I have no idea what I am missing, I checked some links and they do just that. Any idea?

Greetings.

+7
source share
3 answers

This should be a mockery of me: |

The problem is that the path is too long, I moved the project to D:\ , and then it worked fine @. @

I found a solution by accident when I enter an article on path length restrictions.

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

I also hit my head :(

+9
source

I am not sure about this particular problem.

However, one thing that can help is that it is unusual to run diagnostics in Page_Load - it is much more typical to run in the Role Start method.

In addition, I would not recommend using a period of 5 seconds to transfer log files - an hour or more is usually more suitable (although I understand that this option is now available to help you in testing!)

+2
source

I found running the project under IISExpress, and not IIS Web Server fixed this problem for me. To change this, go to the properties of the Azure project and go to the "Web" tab, you can change this setting.

0
source

All Articles