-2004-08-18 Lluis Sanchez Gual <lluis@novell.com>
+2005-10-17 Lluis Sanchez Gual <lluis@novell.com>
+
+ * RemotingConfiguration.cs: Rethrow catched exceptions
+ in ReadConfigFile (patch by Robert Jordan). Fixes bug #76434.
+ Properly set the application name.
+
+2005-08-18 Lluis Sanchez Gual <lluis@novell.com>
* RemotingServices.cs: Notify marshals, unmarshals and disconnections
to TrackingServices. Fixes bug #75814.
public static string ApplicationId
{
get
- {
- applicationID = AppDomain.CurrentDomain.SetupInformation.ApplicationName;
+ {
+ applicationID = ApplicationName;
return applicationID;
}
}
public static string ApplicationName
{
- get {
- try {
- applicationName = AppDomain.CurrentDomain.SetupInformation.ApplicationName;
- }
- catch (Exception e) {
- throw e;
- }
- // We return null if the application name has not been set.
- return null;
- }
+ get { return applicationName; }
set { applicationName = value; }
}
}
catch (Exception ex)
{
- throw new RemotingException ("Configuration file '" + filename + "' could not be loaded: " + ex.Message);
+ throw new RemotingException ("Configuration file '" + filename + "' could not be loaded: " + ex.Message, ex);
}
}
}
catch (Exception ex)
{
- throw new RemotingException ("Error in element " + name + ": " + ex.Message);
+ throw new RemotingException ("Error in element " + name + ": " + ex.Message, ex);
}
}