Skip to content
This repository was archived by the owner on Aug 30, 2023. It is now read-only.

Commit 092d973

Browse files
committed
Merge remote-tracking branch 'xpicio/hotfix/safest-getmodules-method' into develop
* xpicio/hotfix/safest-getmodules-method: Try to fix exception "System.Reflection.RuntimeAssembly in _nLoad" when iis recycle is running and an error is fired to log on Sentry # Conflicts: # src/app/SharpRaven/Utilities/SystemUtil.cs
2 parents a41a2aa + a6d9d4e commit 092d973

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/app/SharpRaven/Utilities/SystemUtil.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,10 @@ public static class SystemUtil
4848
public static IDictionary<string, string> GetModules()
4949
{
5050
var assemblies = AppDomain.CurrentDomain
51-
.GetAssemblies()
52-
.Select(a => a.GetName())
53-
.OrderBy(a => a.Name);
51+
.GetAssemblies()
52+
.Where(q => !q.IsDynamic)
53+
.Select(a => a.GetName())
54+
.OrderBy(a => a.Name);
5455

5556
var dictionary = new Dictionary<string, string>();
5657

0 commit comments

Comments
 (0)