Skip to content

Sentry profiling depends on Windows specific library "Dia2Lib" #4815

@siikanen

Description

@siikanen

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.

Metadata

Metadata

Assignees

Labels

.NETPull requests that update .net codeBugSomething isn't working
No fields configured for issues without a type.

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions