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:
Shreyas Zare
2021-03-13 13:17:51 +05:30
parent 53943007d5
commit f43affb2bb

View File

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