فهرست منبع

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)
                 {