diff --git a/NzbDrone.Common/EnvironmentProvider.cs b/NzbDrone.Common/EnvironmentProvider.cs index e5cc2e8db5..5a146742c9 100644 --- a/NzbDrone.Common/EnvironmentProvider.cs +++ b/NzbDrone.Common/EnvironmentProvider.cs @@ -69,7 +69,7 @@ public virtual string ApplicationPath if (!string.IsNullOrWhiteSpace(applicationPath)) return applicationPath; - applicationPath = CrawlToRoot(StartUpPath); + applicationPath = CrawlToRoot(AppDomain.CurrentDomain.BaseDirectory); if (!string.IsNullOrWhiteSpace(applicationPath)) return applicationPath; @@ -77,7 +77,7 @@ public virtual string ApplicationPath if (!string.IsNullOrWhiteSpace(applicationPath)) return applicationPath; - throw new ApplicationException("Can't fine IISExpress folder."); + throw new ApplicationException("Can't finds IISExpress folder."); } }