From bdc8abe0b695c5d66ceb6714b59e6c73c964dbfb Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Tue, 5 Apr 2011 19:24:57 -0700 Subject: [PATCH] fixed application path to support Application path (full IIS Server) --- LostInfo.txt | 32 -------------------------------- NzbDrone.Core/CentralDispatch.cs | 7 ++----- 2 files changed, 2 insertions(+), 37 deletions(-) delete mode 100644 LostInfo.txt diff --git a/LostInfo.txt b/LostInfo.txt deleted file mode 100644 index 6d80cce27..000000000 --- a/LostInfo.txt +++ /dev/null @@ -1,32 +0,0 @@ -Missing after HDD Failure.... - -ExternalNotiifcationProvider - - NotifyOnGrab, Download, Rename - -XbmcProvider - - SendNotification - - Update - - Clean - -Settings/Notications -NoticationSettingsModel - XBMC: - Enabled - Notify On: Grab, Download, Rename - Update On: Download, Rename - FullUpdate (If Required) - Clean On: Download, Rename - Show Image? - TimeToDisplay? - - -ServerHelper - - Get IP/Hostname - - -SyncProvider Changes - - Add by Root or Single Series - -AddSeries - - Simlar to SB - - FileBrowserModel - Name, Path \ No newline at end of file diff --git a/NzbDrone.Core/CentralDispatch.cs b/NzbDrone.Core/CentralDispatch.cs index c52648ca9..11388b1e2 100644 --- a/NzbDrone.Core/CentralDispatch.cs +++ b/NzbDrone.Core/CentralDispatch.cs @@ -3,6 +3,7 @@ using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Web; +using System.Web.Hosting; using Ninject; using NLog.Config; using NLog.Targets; @@ -99,11 +100,7 @@ namespace NzbDrone.Core { get { - if (HttpContext.Current != null) - { - return new DirectoryInfo(HttpContext.Current.Server.MapPath("\\")).FullName; - } - return Directory.GetCurrentDirectory(); + return HostingEnvironment.ApplicationPhysicalPath; } }