From a6d9d4e84e4e2514bb4330edcc91a918dd157008 Mon Sep 17 00:00:00 2001 From: Patrizio Bertozzi Date: Thu, 18 Feb 2016 12:10:10 +0100 Subject: [PATCH] Try to fix exception "System.Reflection.RuntimeAssembly in _nLoad" when iis recycle is running and an error is fired to log on Sentry --- src/app/SharpRaven/Utilities/SystemUtil.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/SharpRaven/Utilities/SystemUtil.cs b/src/app/SharpRaven/Utilities/SystemUtil.cs index 813ea066..f670d142 100644 --- a/src/app/SharpRaven/Utilities/SystemUtil.cs +++ b/src/app/SharpRaven/Utilities/SystemUtil.cs @@ -49,6 +49,7 @@ public static IDictionary GetModules() { var assemblies = AppDomain.CurrentDomain .GetAssemblies() + .Where(q => !q.IsDynamic) .Select(a => a.GetName()) .OrderBy(a => a.Name);