Thank you @PengGe-MSFT !
It happens in both Debug
and Release
mode from Visual Studio, but not when running from Powershell using dotnet run
.
The files I'm working with are small .csv files - the largest so far was 118KB, so I don't think file size or RAM is an issue.
The output window shows the following:
The thread 0x2dbc has exited with code 0 (0x0).
The program '[10308] iisexpress.exe' has exited with code -1 (0xffffffff).
Once I turned on logging for VS, the following appeared in the Event Viewer:
Fault bucket , type 0
Event Name: VisualStudioNonFatalErrors2
Response: Not available
Cab Id: 0
Problem signature:
P1: iisexpresstray.exe
P2: 7.1.4403.1855
P3: vs.telemetry.internalfault
P4: System.IO.FileLoadException
P5: Microsoft.VisualStudio.Telemetry
P6: Microsoft.VisualStudio.ApplicationInsights.Channel.UniversalTelemetryChannel.IsAvailable
P7: _
P8: _
P9: _
P10: _
Attached files:
\\?\C:\Users\...\AppData\Local\Temp\VSFaultInfo\210727_033356_9009600\ErrorInformation.txt
These files may be available here:
Analysis symbol:
Rechecking for solution: 0
Report Id: 0de80fc2-af82-4385-b6e1-864e41d2f7d3
Report Status: 268697600
Hashed bucket:
Cab Guid: 0
And the file it references looks like:
Error Information
AppInsightsEvent Name = vs/telemetry/internalfault
Description = Exception in SessionChannel.EventProcessorChannel ProcessEvents Channel = eventProcessorChannel
TelemetrySession = '72b0c255-e669-4f2f-853d-faf98179cae7' Started = True OptIn=True IsInitialized = True Cloned = False
WatsonEventType = VisualStudioNonFatalErrors2
UTC time = 2021-07-27T20:33:56
Exception:
System.IO.FileLoadException
Could not load file or assembly 'Microsoft.Diagnostics.Tracing.EventSource, Version=1.1.28.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Microsoft.VisualStudio.ApplicationInsights.Channel.UniversalTelemetryChannel.IsAvailable()
Microsoft.VisualStudio.Telemetry.SessionChannel.AsimovAppInsightsClientWrapper.CreateAppInsightsChannel(TelemetryConfiguration config)
Microsoft.VisualStudio.Telemetry.SessionChannel.BaseAppInsightsClientWrapper.Initialize(String sessionId, String userId)
Microsoft.VisualStudio.Telemetry.EventProcessorRouter.RouteEvent(TelemetryEvent telemetryEvent, String sessionId, Boolean isDropped)
Microsoft.VisualStudio.Telemetry.SessionChannel.EventProcessorChannel.ProcessEvents()
WerReportAddDump PID=33664 iisexpresstray WerDumpTypeMiniDump
Thanks again for your reply.