2016-06-02 17 views
2

Bei einer kürzlich erfolgten Bereitstellung unseres Cloud-Dienstes erhalte ich viele Fehler in meinem Anwendungsereignisprotokoll. Vermutlich ist es eine Kombination von uns, etwas in Azure Diagnostics falsch zu konfigurieren, und Azure Diagnostics ist nicht in der Lage, damit umzugehen. Aber was genau ist falsch konfiguriert?AzureDiagnostics stürzt mit System.ArgumentException ab: Ein Element mit demselben Schlüssel wurde bereits hinzugefügt

alle 5 Minuten bekomme ich diese:

erste Fehler mit 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 

Dann Fehlerquelle = .NET Runtime

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[]) 

Dann Fehler mit Source = Anwendungsfehler

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: 
+0

Ich hoffe, jemand antwortet dies. Ich habe das gleiche Problem! – Bakwon

Antwort

2

Sieht aus wie das Problem in meiner Diagnose Konfiguration> Windows Event Logs war. Ich hatte sowohl System!* angekreuzt als auch System![System[(Level = 1 or Level=2)]]. D'oh.

Ich bekomme immer noch die ungeraden anderen Fehler, scheint aber nicht wichtig.

System.NullReferenceException: Object reference not set to an instance of an object. 
    at Microsoft.Azure.Plugins.Diagnostics.dll.RoleInformation.get_IsWorkerRole() 
+0

Das hat es auch für mich behoben. Ein Typ in meiner Firma machte den gleichen Fehler. – Bakwon