summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2012-05-29 19:29:31 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2012-05-29 19:31:22 -0700
commit5da9358ea67a58a4c89ca80a854dd27c1a3522ed (patch)
treee3fae653cf19d6cabaee0f9a76e495397a06ea69 /src
parente080612337912c55266a054ee05778e6f21f84ee (diff)
downloadDotNetOpenAuth-5da9358ea67a58a4c89ca80a854dd27c1a3522ed.zip
DotNetOpenAuth-5da9358ea67a58a4c89ca80a854dd27c1a3522ed.tar.gz
DotNetOpenAuth-5da9358ea67a58a4c89ca80a854dd27c1a3522ed.tar.bz2
Fix TypeLoadException for log4net under mono
Fixes #151
Diffstat (limited to 'src')
-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 dd71a05..293a6b2 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 (TypeLoadException) { // Thrown by mono (http://stackoverflow.com/questions/10805773/error-when-pushing-dotnetopenauth-to-staging-or-production-environment)
+ return null;
}
}