getsentry / getsentry/sentry-dotnet

Sentry profiling depends on Windows specific library "Dia2Lib"

Open
#4,815 5 comments 0 reactions 0 assignees View on GitHub
.NET Bug State: Blocked
Dominant language
C#
Stars
770
Forks
248
Avg merge
3d 4h
Merged PRs (30d)
49

Description

### Package

Sentry.AspNetCore

### .NET Flavor

.NET Core

### .NET Version

9.0.11

### OS

Linux

### OS Version

Debian 12 container

### Development Environment

Visual Studio Code (Linux)

### SDK Version

6.0.0

### Self-Hosted Sentry Version

_No response_

### Workload Versions

Returns none

### UseSentry or SentrySdk.Init call

SentrySdk.Init call

### Steps to Reproduce

1. Have Sentry version 6.0.0 included in .NET 9 application
2. Call `options.AddProfilingIntegration();` in Sentry initialization
3. Bundle the application into `mcr.microsoft.com/dotnet/aspnet:9.0` container

### Expected Result

Application should start

### Actual Result

Application fails to start with following exception (which Sentry does correctly capture):

```
System.Reflection.ReflectionTypeLoadException
Unable to load one or more of the requested types.
Could not load file or assembly 'Dia2Lib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified.

Could not load file or assembly 'TraceReloggerLib, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified.

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.