Skip to content
This repository was archived by the owner on Sep 2, 2025. It is now read-only.

Commit 40b0657

Browse files
authored
Merge pull request #2111 from splunk/o11ydocs-6333-dotnet-inst-tshooting
Add assembly version conflicts troubleshooting info to .NET instrumentation docs
2 parents acf93e0 + 77878e6 commit 40b0657

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

gdi/get-data-in/application/otel-dotnet/troubleshooting/common-dotnet-troubleshooting.rst

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,24 @@ The thread sampler resumes its activity when any of the buffers is empty.
214214

215215
To avoid the loss of profiling data due to full buffers, check the configuration and the communication layer between your process and the Splunk Distribution of OpenTelemetry Collector.
216216

217+
Assembly version conflicts
218+
==========================
219+
220+
When installing the .NET instrumentation, you might encounter dependency version conflicts that result in error messages such as:
221+
222+
.. code-block:: bash
223+
224+
Unhandled exception. System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Extensions.DependencyInjection.Abstractions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The system cannot find the file specified.
225+
226+
File name: 'Microsoft.Extensions.DependencyInjection.Abstractions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
227+
at Microsoft.AspNetCore.Builder.WebApplicationBuilder..ctor(WebApplicationOptions options, Action`1 configureDefaults)
228+
at Microsoft.AspNetCore.Builder.WebApplication.CreateBuilder(String[] args)
229+
at Program.<Main>$(String[] args) in /Blog.Core/Blog.Core.Api/Program.cs:line 26
230+
231+
To resolve this issue, :ref:`install the .NET instrumentation using the NuGet packages <otel-dotnet-nuget-pkg>`, as NuGet automatically installs the correct dependencies that the package requires.
232+
233+
Alternatively, you can update to the latest version of .NET, as this reduces the likelihood of dependency version conflicts.
234+
217235
Uninstall the instrumentation
218236
======================================
219237

0 commit comments

Comments
 (0)