From b26187fce226458a7b8e6563dc900f515e758398 Mon Sep 17 00:00:00 2001 From: Jarle Hjortland Date: Fri, 8 Oct 2021 16:02:35 +0200 Subject: [PATCH] Use IOException instead of FileLoadException to handle #269 where an FileNotFoundExeption is thrown. --- src/Hyperion/Extensions/TypeEx.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Hyperion/Extensions/TypeEx.cs b/src/Hyperion/Extensions/TypeEx.cs index 491b4851..59a7105e 100644 --- a/src/Hyperion/Extensions/TypeEx.cs +++ b/src/Hyperion/Extensions/TypeEx.cs @@ -210,7 +210,7 @@ public static Type LoadTypeByName(string name, bool disallowUnsafeTypes) "Unsafe Type Deserialization Detected!", name); return type; } - catch (FileLoadException) + catch (IOException) { var typename = ToQualifiedAssemblyName(name, ignoreAssemblyVersion: true); var type = Type.GetType(typename, true);