AzureDiagnostics与System.ArgumentException崩溃:已添加具有相同键的项

时间:2016-06-02 09:35:23

标签: azure azure-cloud-services azure-diagnostics

在我们最近部署的Cloud Service中,我在应用程序事件日志中遇到了很多错误。据推测,它是我们在Azure诊断和Azure诊断中无法正确处理它的错误配置的组合。但具体是什么错误配置?

我每5分钟就得到一次:

Source = AzureDiagnostics的第一个错误

System.ArgumentException: An item with the same key has already been added.
   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at ApplicationInsightsExtension.WindowsEventLogPublisher..ctor(ILogger logger, ITelemetryClient client, String logTablesPath, IEnumerable`1 dataSources, ILocalTableReader tableReader, Dictionary`2 configProperties) in x:\bt\725234\repo\src\agent\extensions\AppInsightsExtension\Publishers\WindowsEventLogPublisher.cs:line 59
   at ApplicationInsightsExtension.WAD2AIExtension.GetPublishersBasedOnConfig() in x:\bt\725234\repo\src\agent\extensions\AppInsightsExtension\WAD2AIExtension.cs:line 114
   at ApplicationInsightsExtension.Program.Main(String[] args) in x:\bt\725234\repo\src\agent\extensions\AppInsightsExtension\Program.cs:line 43

然后错误源= .NET运行时

Application: ApplicationInsightsExtension.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.ArgumentException
Stack:
   at ApplicationInsightsExtension.Program.Main(System.String[])

然后出现Source = Application Error

错误
Faulting application name: ApplicationInsightsExtension.exe, version: 33.3.11.0, time stamp: 0x57224d6d
Faulting module name: KERNELBASE.dll, version: 6.3.9600.18202, time stamp: 0x569e7eb1
Exception code: 0xe0434352
Fault offset: 0x0000000000008a5c
Faulting process id: 0x1504
Faulting application start time: 0x01d1bcb0c4a62a77
Faulting application path: C:\Resources\directory\403a5550e74e40448af87aa6c4d6183a.OUR.APP.NAME.DiagnosticStore\WAD0106\Package\Ext\ApplicationInsightsExtension\Commit\ApplicationInsightsExtension.exe
Faulting module path: D:\Windows\system32\KERNELBASE.dll
Report Id: 02a628df-28a4-11e6-80c2-00155dc05ef6
Faulting package full name: 
Faulting package-relative application ID: 

1 个答案:

答案 0 :(得分:2)

问题出现在我的诊断配置&gt; Windows事件日志。我同时勾选了int main(void) { int a = 2000; unsigned char *p = (unsigned char *)&a; int i; printf("a ="); for (i = 0; i < sizeof(a); ++i) { printf(" %02x", p[i]); } printf("\n"); return 0; } System!*。 d&#39;哦

我仍然得到像这样奇怪的其他错误,但似乎并不重要。

System![System[(Level = 1 or Level=2)]]