Skip to content

When Application Includes a Refit Assembly, Many System.IO.IOExceptions Are Thrown #4939

@Mike-E-angelo

Description

@Mike-E-angelo

Package

Sentry

.NET Flavor

.NET

.NET Version

10.0.103

OS

Windows

OS Version

Windows 11

Development Environment

Visual Studio v18.x

SDK Version

6.1.0

Self-Hosted Sentry Version

No response

Workload Versions

Workload version: 10.0.200-manifests.796b3495

Installed Workload Id Manifest Version Installation Source

android 36.1.30/10.0.100 VS 18.3.11512.155, VS 18.4.11513.90
ios 26.2.10197/10.0.100 VS 18.3.11512.155, VS 18.4.11513.90
maccatalyst 26.2.10197/10.0.100 VS 18.3.11512.155, VS 18.4.11513.90
maui-windows 10.0.20/10.0.100 VS 18.3.11512.155, VS 18.4.11513.90

UseSentry or SentrySdk.Init call

"Serilog": {
"WriteTo": [
{
"Name": "Sentry",
"Args": {
"enableLogs": true,
"environment": "Development",
"minimumEventLevel": "Debug",
"minimumBreadcrumbLevel": "Debug"
}
}
]
},

Steps to Reproduce

When using Sentry 6.1.0 with a Refit assembly, System.IO.IOExceptions are thrown due to attempting to load the assembly, but it is in memory:

Image

Expected Result

No exceptions are thrown

Actual Result

Many exceptions are thrown and caught, leaving messages in the debug window:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    .NETPull requests that update .net codeBugSomething isn't workingNeeds Reproduction

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions