mirror of
https://github.com/fergalmoran/DnsServer.git
synced 2026-02-25 17:27:40 +00:00
DnsApplication: added exception logging when loading dll. Letting the app load even when no request handler was loaded to allow uninstalling from the UI.
This commit is contained in:
@@ -103,8 +103,9 @@ namespace DnsServerCore.Dns.Applications
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (BadImageFormatException)
|
||||
catch (Exception ex)
|
||||
{
|
||||
_dnsServer.WriteLog(ex);
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -121,9 +122,6 @@ namespace DnsServerCore.Dns.Applications
|
||||
}
|
||||
}
|
||||
|
||||
if (dnsRequestHandlers.Count == 0)
|
||||
throw new DnsServerException("No DNS request handler was found in the DNS application: " + _appName);
|
||||
|
||||
_dnsRequestHandlers = dnsRequestHandlers;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user