diff --git a/NzbDrone.Web/Global.asax.cs b/NzbDrone.Web/Global.asax.cs index 56caffc54..7b7d688be 100644 --- a/NzbDrone.Web/Global.asax.cs +++ b/NzbDrone.Web/Global.asax.cs @@ -1,4 +1,5 @@ using System; +using System.Linq; using System.Data.Common; using System.Reflection; using System.Threading; @@ -41,6 +42,11 @@ namespace NzbDrone.Web RegisterRoutes(RouteTable.Routes); //base.OnApplicationStarted(); AreaRegistration.RegisterAllAreas(); + + var razor =ViewEngines.Engines.Where(e => e.GetType() == typeof (RazorViewEngine)).Single(); + ViewEngines.Engines.Clear(); + ViewEngines.Engines.Add(razor); + RegisterGlobalFilters(GlobalFilters.Filters); Logger.Debug("Fully initialized and ready."); diff --git a/NzbDrone/IISController.cs b/NzbDrone/IISController.cs index 06d4bc99e..1d93b86ee 100644 --- a/NzbDrone/IISController.cs +++ b/NzbDrone/IISController.cs @@ -71,6 +71,8 @@ namespace NzbDrone IISProcess.BeginErrorReadLine(); IISProcess.BeginOutputReadLine(); + IISProcess.PriorityClass = ProcessPriorityClass.AboveNormal; + //Start Ping _pingTimer = new Timer(300000) { AutoReset = true }; _pingTimer.Elapsed += (PingServer);