summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2013-01-02 06:55:23 -0800
committerAndrew Arnott <andrewarnott@gmail.com>2013-01-12 12:16:26 -0800
commit3d5be0512a0208c58a96de74254fceacd83042a2 (patch)
tree45471225d2d65a5336a7aba8a42bce4b8cb23a98
parent0d6311c0bab511b8bae2517d8e677f82c1264e11 (diff)
downloadDotNetOpenAuth-3d5be0512a0208c58a96de74254fceacd83042a2.zip
DotNetOpenAuth-3d5be0512a0208c58a96de74254fceacd83042a2.tar.gz
DotNetOpenAuth-3d5be0512a0208c58a96de74254fceacd83042a2.tar.bz2
Adds another catch block to the logger initializer.
-rw-r--r--src/DotNetOpenAuth.Core/Loggers/Log4NetLogger.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/DotNetOpenAuth.Core/Loggers/Log4NetLogger.cs b/src/DotNetOpenAuth.Core/Loggers/Log4NetLogger.cs
index 293a6b2..01da034 100644
--- a/src/DotNetOpenAuth.Core/Loggers/Log4NetLogger.cs
+++ b/src/DotNetOpenAuth.Core/Loggers/Log4NetLogger.cs
@@ -201,6 +201,8 @@ namespace DotNetOpenAuth.Loggers {
return IsLog4NetPresent ? CreateLogger(name) : null;
} catch (FileLoadException) { // wrong log4net.dll version
return null;
+ } catch (TargetInvocationException) { // Thrown due to some security issues on .NET 4.5.
+ return null;
} catch (TypeLoadException) { // Thrown by mono (http://stackoverflow.com/questions/10805773/error-when-pushing-dotnetopenauth-to-staging-or-production-environment)
return null;
}