---
title: "Troubleshooting"
description: "Learn how to troubleshoot your profiling setup."
url: https://docs.sentry.io/platforms/dotnet/guides/winforms/profiling/troubleshooting/
---

# Profiling Troubleshooting for Windows Forms

### [Profiles are not showing up](https://docs.sentry.io/platforms/dotnet/guides/winforms/profiling/troubleshooting.md#profiles-are-not-showing-up)

If you don't see any profiling data in [sentry.io](https://sentry.io), you can try the following:

* Ensure that [Tracing is enabled](https://docs.sentry.io/platforms/dotnet/guides/winforms/tracing.md).

* Ensure that the automatic instrumentation is sending performance data to Sentry by going to the **Performance** page in [sentry.io](https://sentry.io).

* If the automatic instrumentation is not sending performance data, try using [custom instrumentation](https://docs.sentry.io/platforms/dotnet/guides/winforms/tracing/instrumentation/custom-instrumentation.md).

* Enable [debug mode](https://docs.sentry.io/platforms/dotnet/guides/winforms/configuration/options.md#debug) in the SDK and check the logs.

* If the transactions happen too soon after `Sentry.Init()`, they may not be captured yet. This is because the `ProfilingIntegration()` from `Sentry.Profiling` NuGet package initializes asynchronously by default. If you'd like to initialize it synchronously, set the desired timeout argument, e.g. `options.AddProfilingIntegration(TimeSpan.FromMilliseconds(500))` to wait up to 500 ms for the profiler to start up. Note: this doesn't apply to iOS and Mac Catalyst which use native profiling, are initialized synchronously, and the timeout argument is ignored.

* Maybe you're trying to capture profiles on a platform that is currently **not** supported, notably:

  * .NET Framework; we only support .NET 8.0+
  * Native AOT - this is only supported for iOS and Mac Catalyst (alongside the standard Mono AOT)
  * Android - currently not supported at all
  * Blazor WebAssembly

### [Build error: `Package Sentry.Profiling is not supported on platform`](https://docs.sentry.io/platforms/dotnet/guides/winforms/profiling/troubleshooting.md#build-error-package-sentryprofiling-is-not-supported-on-platform)

The `Sentry.Profiling` package stops the build for target frameworks that it doesn't support:

* Android: profiling isn't supported.
* iOS and Mac Catalyst: the profiler is already part of the `Sentry` package, so `Sentry.Profiling` isn't needed.

If your project targets several platforms, as a .NET MAUI app does, reference `Sentry.Profiling` only for the other target frameworks:

```xml
<ItemGroup>
  <PackageReference Include="Sentry.Profiling" Version="7.1.0"
                    Condition="'$(TargetPlatformIdentifier)' != 'android' and '$(TargetPlatformIdentifier)' != 'ios' and '$(TargetPlatformIdentifier)' != 'maccatalyst'" />
</ItemGroup>
```

Add this reference to the app project itself. If a shared library that your Android, iOS, or Mac Catalyst build uses references `Sentry.Profiling`, move the reference from the library to the app project.

Then skip the profiling setup on Android. `AddProfilingIntegration()` isn't available there without the package, and setting `ProfilesSampleRate` only makes the SDK log a warning at startup. On iOS and Mac Catalyst, `AddProfilingIntegration()` comes from the `Sentry` package.

```csharp
#if !ANDROID
options.ProfilesSampleRate = 1.0;
options.AddProfilingIntegration();
#endif
```

### [`Unknown` frames](https://docs.sentry.io/platforms/dotnet/guides/winforms/profiling/troubleshooting.md#unknown-frames)

Some frames will show up as `unknown` in the UI. This is because the SDK does not have information about the stack frame. Usually, these are anonymous helper JIT-generated methods and present among `System` stack frames.

---

Find other pages: [Sitemap](https://docs.sentry.io/sitemap.md) lists every page with a one-line summary, and [llms.txt](https://docs.sentry.io/llms.txt) gives an overview with guidance for agents.
