소스 검색

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