You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by dp...@apache.org on 2012/11/12 13:03:15 UTC

svn commit: r1408260 - /logging/log4net/trunk/src/Util/SystemInfo.cs

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";
 				}