c# - diagnostics not working in web role for Azure SDK 2.5.1 -


i working azure sdk 2.5.1, on new designed diagnostics stuffs. however, found cannot run web role.

so, created cloud service project, added web role. then, appended 1 trace message @ end of application_start in global.asax.cs:

trace.traceinformaction("application_start end."); 

after that, right clicked webrole , opened properties tab. in diagnostics config window:

  • general: choose 'custom plan', specified storage account, keep 'disk quota in mb' default '4096'
  • application logs: 'log level' switch 'all', others kept default
  • other tabs in default config settings

after deployed project cloud, found unexpected things:

  • there no wadlogstable exists in table storage. that's strange, if use worker role, work expected. in web role, cannot find trace logging?
  • for performance counters, since using default config 8 counters, can see 8 in wadperformancecounterstable table storage. in assumption, on time, there more , more values of 8 counters transferred table. not happened, after several hours, still had 8 counter values.

i thought diagnostics web role crashed or not working @ all. meanwhile, checked logs located @ "c:\logs\plugins\microsoft.azure.diagnostics.paasdiagnostics\1.4.0.0\diagnosticsplugin.log" in server, @ end of file there exception said diagnostics process exit:

diagnosticsplugin.exe error: 0 : [4/25/2015 5:38:21 am] system.argumentexception: item same key has been added.    @ system.collections.generic.dictionary`2.insert(tkey key, tvalue value, boolean add)    @ microsoft.azure.plugins.diagnostics.dll.pluginconfigurationsettingsprovider.loadwadxmlconfig(string fullconfig) diagnosticsplugin.exe error: 0 : [4/25/2015 5:38:21 am] failed load configuration file diagnosticsplugin.exe information: 0 : [4/25/2015 5:38:21 am] diagnosticplugin.exe exit code -105 

from msdn, code -105 means:

the diagnostics plugin cannot open diagnostics configuration file.

this internal error should happen if diagnostics plugin manually invoked, incorrectly, on vm.

it doesn't make sense, did nothing vm.

as said above, did tiny changes scaffold code generated visual studio 2013. did wrong or it's bug azure sdk 2.5?

by way, seems ok worker role.

quote msdn forum:

hey folks jumping late here wanted confirm there issue initial 1.4.0.0 diagnostics extension plugin crash on web role under circumstances.

the issue has since been resolved 1.4.1.0. if re-apply extension on role should automatically latest version fixes issue.

at stage, diagnostics in sdk 2.5.1 has internal issue inside, microsoft fixed it.

anyway, have newer version can applied, not problem anymore, in case meet issue too.


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -