The Free Software Media System - Server Backend & API
Fix TypeLoadException during plugin load
Patrick Barron942c733d4f13
diff --git a/Emby.Server.Implementations/ApplicationHost.cs b/Emby.Server.Implementations/ApplicationHost.csindex 18b6834ef5..fe1961b702 100644--- a/Emby.Server.Implementations/ApplicationHost.cs+++ b/Emby.Server.Implementations/ApplicationHost.cs@@ -871,6 +871,11 @@ namespace Emby.Server.ImplementationsLogger.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){