From e7816d7e7fb96bbfe67dfc6fd11c171586583870 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Wed, 29 Aug 2012 22:50:22 -0700 Subject: [PATCH] AppPath tweak --- NzbDrone.Common/EnvironmentProvider.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/NzbDrone.Common/EnvironmentProvider.cs b/NzbDrone.Common/EnvironmentProvider.cs index e5cc2e8db..5a146742c 100644 --- a/NzbDrone.Common/EnvironmentProvider.cs +++ b/NzbDrone.Common/EnvironmentProvider.cs @@ -69,7 +69,7 @@ namespace NzbDrone.Common if (!string.IsNullOrWhiteSpace(applicationPath)) return applicationPath; - applicationPath = CrawlToRoot(StartUpPath); + applicationPath = CrawlToRoot(AppDomain.CurrentDomain.BaseDirectory); if (!string.IsNullOrWhiteSpace(applicationPath)) return applicationPath; @@ -77,7 +77,7 @@ namespace NzbDrone.Common if (!string.IsNullOrWhiteSpace(applicationPath)) return applicationPath; - throw new ApplicationException("Can't fine IISExpress folder."); + throw new ApplicationException("Can't finds IISExpress folder."); } }