logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dpsen...@apache.org
Subject svn commit: r1408260 - /logging/log4net/trunk/src/Util/SystemInfo.cs
Date Mon, 12 Nov 2012 12:03:15 GMT
Author: dpsenner
Date: Mon Nov 12 12:03:14 2012
New Revision: 1408260

URL: http://svn.apache.org/viewvc?rev=1408260&view=rev
Log:
LOG4NET-362 fix SystemInfo.AssemblyLocationInfo that raises an unhandled ArgumentException
when the application is started via UNC path

Modified:
    logging/log4net/trunk/src/Util/SystemInfo.cs

Modified: logging/log4net/trunk/src/Util/SystemInfo.cs
URL: http://svn.apache.org/viewvc/logging/log4net/trunk/src/Util/SystemInfo.cs?rev=1408260&r1=1408259&r2=1408260&view=diff
==============================================================================
--- logging/log4net/trunk/src/Util/SystemInfo.cs (original)
+++ logging/log4net/trunk/src/Util/SystemInfo.cs Mon Nov 12 12:03:14 2012
@@ -455,7 +455,11 @@ namespace log4net.Util
 					// carry on.
 					return myAssembly.Location;
 				}
-				catch(System.Security.SecurityException)
+				catch (ArgumentException ex)
+				{
+					return "Location Detect Failed (" + ex.Message + ")";
+				}
+				catch (System.Security.SecurityException)
 				{
 					return "Location Permission Denied";
 				}



Mime
View raw message