I'm calling the following code from Windows service that was written with C#:
try
{
ServerManager m = new ServerManager();
if(m != null)
{
SiteCollection sites = m.Sites; //I get exception here
}
}
catch (Exception ex)
{
}I get this exception:
{"Filename: redirection.config\r\nError: Cannot read configuration file\r\n\r\n":null}
What does that mean? And is there any way to predict it in ServerManager or my
mvariable before it's thrown?