Skip to content

Commit adfd46c

Browse files
committed
New issue added
1 parent 3126f76 commit adfd46c

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+
IIS - Assembly Grant Set Issue
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 may increase CPU and memory usage.
260+
248261
Uninstall the instrumentation
249262
======================================
250263

0 commit comments

Comments
 (0)