Skip to content

Commit a273922

Browse files
Merge pull request #2717 from splunk/kopta_troubleshoot_dotnet_instrumentation
troubleshoot_dotnet_instrumentation - New issue added
2 parents cf68055 + e0518da commit a273922

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,19 @@ To resolve this issue, :ref:`install the .NET instrumentation using the NuGet pa
245245
246246
Alternatively, you can update to the latest version of .NET, as this reduces the likelihood of dependency version conflicts.
247247
248+
Fixing Assembly Permissions IIS
249+
======================================
250+
251+
When using the .NET Framework with an IIS-hosted application, you might encounter crashes with an event similar to the following:
252+
253+
.. code-block:: bash
254+
255+
[Exception] System.IO.FileLoadException
256+
[Message] "Loading this assembly would produce a different grant set from other instances."
257+
258+
To resolve this issue, create a new ``DWARD`` value called ``LoaderOptimization`` and set its value to ``1`` under the registry key ``HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework``.
259+
This allows different versions of the same application to load into different domains, though it might increase CPU and memory usage.
260+
248261
Uninstall the instrumentation
249262
======================================
250263

0 commit comments

Comments
 (0)