Преглед изворни кода

Fix TypeLoadException during plugin load

Patrick Barron пре 5 година
родитељ
комит
942c733d4f
1 измењених фајлова са 5 додато и 0 уклоњено
  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)
                 {