Skip to content
This repository has been archived by the owner on Jan 24, 2021. It is now read-only.

Commit

Permalink
Merge pull request #2047 from danielmue/bugfix/AssemblyLoaderBug
Browse files Browse the repository at this point in the history
Fixes TypeLoadException from static constructor in AppDomainAssemblyT…
  • Loading branch information
khellang committed Sep 4, 2015
2 parents 078b55d + 87825c5 commit 6b7ddcc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Nancy/Extensions/AssemblyExtensions.cs
Expand Up @@ -31,7 +31,10 @@ public static Type[] SafeGetExportedTypes(this Assembly assembly)
{
types = new Type[] { };
}

catch (FileLoadException) {
// probably assembly version conflict
types = new Type[] { };
}
return types;
}
}
Expand Down

0 comments on commit 6b7ddcc

Please sign in to comment.