Skip to content
Snippets Groups Projects
Commit 189d46f9 authored by Niko Ehrenfeuchter's avatar Niko Ehrenfeuchter :keyboard:
Browse files

Adapt LoadConfig() to new configuration location.

Refers to #18
parent 0ee95e52
No related branches found
No related tags found
No related merge requests found
...@@ -203,10 +203,9 @@ namespace ATxService ...@@ -203,10 +203,9 @@ namespace ATxService
/// Load the configuration. /// Load the configuration.
/// </summary> /// </summary>
private void LoadConfig() { private void LoadConfig() {
var confPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory,
"configuration.xml");
try { try {
_config = ServiceConfig.Deserialize(confPath); _config = ServiceConfig.Deserialize(
Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "conf"));
} }
catch (ConfigurationErrorsException ex) { catch (ConfigurationErrorsException ex) {
Log.Error("Validating configuration failed: {0}", ex.Message); Log.Error("Validating configuration failed: {0}", ex.Message);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment