private static RemotingXmlConfigFileData LoadConfigurationFromXmlFile(String filename)
{
try
{
if (filename != null)
return RemotingXmlConfigFileParser.ParseConfigFile(filename);
else
return null;
}
catch (Exception e)
{
Exception inner = e.InnerException as FileNotFoundException;
if (inner != null)
{
// if the file is missing, this gives a clearer message
e = inner;
}
throw new RemotingException(
String.Format(
CultureInfo.CurrentCulture, Environment.GetResourceString(
"Remoting_Config_ReadFailure"),
filename,
e));
}
} // LoadConfigurationFromXmlFile