summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.Core/Loggers/Log4NetLogger.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2013-04-11 22:53:35 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2013-04-11 22:53:35 -0700
commit2feb70bbb0c47a95a6edf68c492b4c2c7d2266bb (patch)
tree472a4b5c61b5250f8b4cbc291a619361a780a261 /src/DotNetOpenAuth.Core/Loggers/Log4NetLogger.cs
parente6398df1dc2d5a9d1c50d08dd29da71dbc5eb623 (diff)
parent778328ec797299ed6aa01279b3ccbf1eb15258bd (diff)
downloadDotNetOpenAuth-2feb70bbb0c47a95a6edf68c492b4c2c7d2266bb.zip
DotNetOpenAuth-2feb70bbb0c47a95a6edf68c492b4c2c7d2266bb.tar.gz
DotNetOpenAuth-2feb70bbb0c47a95a6edf68c492b4c2c7d2266bb.tar.bz2
Merge branch 'v4.1' into v4.2
Conflicts: src/DotNetOpenAuth.Core/Messaging/MessagingUtilities.cs
Diffstat (limited to 'src/DotNetOpenAuth.Core/Loggers/Log4NetLogger.cs')
-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;
}