Explorar o código

Fix TypeLoadException during plugin load

Patrick Barron %!s(int64=5) %!d(string=hai) anos
pai
achega
942c733d4f
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      Emby.Server.Implementations/ApplicationHost.cs

+ 5 - 0
Emby.Server.Implementations/ApplicationHost.cs

@@ -871,6 +871,11 @@ namespace Emby.Server.Implementations
                     Logger.LogError(ex, "Error getting exported types from {Assembly}", ass.FullName);
                     continue;
                 }
+                catch (TypeLoadException ex)
+                {
+                    Logger.LogError(ex, "Error loading types from {Assembly}.", ass.FullName);
+                    continue;
+                }
 
                 foreach (Type type in exportedTypes)
                 {