summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2012-09-17 17:00:34 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2012-09-20 19:34:45 -0700
commit2299e0dc5df046c21bf9545dfbf48f901f5efb07 (patch)
treef34d04f56a60fa23f59434a7d87cf768651fd3b0 /src
parent077a81313e2e86ac418158f79318329c6159d48d (diff)
downloadDotNetOpenAuth-2299e0dc5df046c21bf9545dfbf48f901f5efb07.zip
DotNetOpenAuth-2299e0dc5df046c21bf9545dfbf48f901f5efb07.tar.gz
DotNetOpenAuth-2299e0dc5df046c21bf9545dfbf48f901f5efb07.tar.bz2
Fix for unhandled exception in some partial trust environments (mono?).
Diffstat (limited to 'src')
-rw-r--r--src/DotNetOpenAuth.OpenId/OpenId/UriIdentifier.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/DotNetOpenAuth.OpenId/OpenId/UriIdentifier.cs b/src/DotNetOpenAuth.OpenId/OpenId/UriIdentifier.cs
index d601aed..631eab6 100644
--- a/src/DotNetOpenAuth.OpenId/OpenId/UriIdentifier.cs
+++ b/src/DotNetOpenAuth.OpenId/OpenId/UriIdentifier.cs
@@ -90,6 +90,10 @@ namespace DotNetOpenAuth.OpenId {
// We must be running in partial trust. Nothing more we can do.
Logger.OpenId.Warn("Unable to coerce .NET to stop compressing URI paths due to partial trust limitations. Some URL identifiers may be unable to complete login.");
Reporting.RecordFeatureUse("PartialTrust");
+ } catch (FieldAccessException) { // one customer reported getting this exception
+ // We must be running in partial trust. Nothing more we can do.
+ Logger.OpenId.Warn("Unable to coerce .NET to stop compressing URI paths due to partial trust limitations. Some URL identifiers may be unable to complete login.");
+ Reporting.RecordFeatureUse("PartialTrust");
}
}