diff --git a/src/NzbDrone.Console/NzbDrone.Console.csproj b/src/NzbDrone.Console/NzbDrone.Console.csproj
index f4351791a..956b066b2 100644
--- a/src/NzbDrone.Console/NzbDrone.Console.csproj
+++ b/src/NzbDrone.Console/NzbDrone.Console.csproj
@@ -71,13 +71,13 @@
False
..\packages\Microsoft.AspNet.SignalR.Owin.1.1.3\lib\net40\Microsoft.AspNet.SignalR.Owin.dll
-
+
False
- ..\packages\Microsoft.Owin.1.1.0-beta2\lib\net40\Microsoft.Owin.dll
+ ..\packages\Microsoft.Owin.2.0.1\lib\net40\Microsoft.Owin.dll
-
+
False
- ..\packages\Microsoft.Owin.Hosting.1.1.0-beta2\lib\net40\Microsoft.Owin.Hosting.dll
+ ..\packages\Microsoft.Owin.Hosting.2.0.1\lib\net40\Microsoft.Owin.Hosting.dll
False
diff --git a/src/NzbDrone.Console/packages.config b/src/NzbDrone.Console/packages.config
index 19f3a3d8b..268430b6b 100644
--- a/src/NzbDrone.Console/packages.config
+++ b/src/NzbDrone.Console/packages.config
@@ -2,8 +2,8 @@
-
-
+
+
diff --git a/src/NzbDrone.Host/NzbDrone.Host.csproj b/src/NzbDrone.Host/NzbDrone.Host.csproj
index b4aa2ad35..a99ee29a5 100644
--- a/src/NzbDrone.Host/NzbDrone.Host.csproj
+++ b/src/NzbDrone.Host/NzbDrone.Host.csproj
@@ -77,17 +77,17 @@
False
..\packages\Microsoft.AspNet.SignalR.Owin.1.1.3\lib\net40\Microsoft.AspNet.SignalR.Owin.dll
-
+
False
- ..\packages\Microsoft.Owin.1.1.0-beta2\lib\net40\Microsoft.Owin.dll
+ ..\packages\Microsoft.Owin.2.0.1\lib\net40\Microsoft.Owin.dll
-
+
False
- ..\packages\Microsoft.Owin.Host.HttpListener.1.1.0-beta2\lib\net40\Microsoft.Owin.Host.HttpListener.dll
+ ..\packages\Microsoft.Owin.Host.HttpListener.2.0.1\lib\net40\Microsoft.Owin.Host.HttpListener.dll
-
+
False
- ..\packages\Microsoft.Owin.Hosting.1.1.0-beta2\lib\net40\Microsoft.Owin.Hosting.dll
+ ..\packages\Microsoft.Owin.Hosting.2.0.1\lib\net40\Microsoft.Owin.Hosting.dll
False
diff --git a/src/NzbDrone.Host/Owin/OwinHostController.cs b/src/NzbDrone.Host/Owin/OwinHostController.cs
index 5af5a96c5..d1c35c1b0 100644
--- a/src/NzbDrone.Host/Owin/OwinHostController.cs
+++ b/src/NzbDrone.Host/Owin/OwinHostController.cs
@@ -72,7 +72,11 @@ namespace NzbDrone.Host.Owin
try
{
- _host = WebApp.Start(OwinServiceProviderFactory.Create(), options, BuildApp);
+
+ // options.ServerFactory = new
+ //_host = WebApp.Start(OwinServiceProviderFactory.Create(), options, BuildApp);
+ _host = WebApp.Start(options, BuildApp);
+
}
catch (TargetInvocationException ex)
{
diff --git a/src/NzbDrone.Host/packages.config b/src/NzbDrone.Host/packages.config
index f134e38ed..49e1440a1 100644
--- a/src/NzbDrone.Host/packages.config
+++ b/src/NzbDrone.Host/packages.config
@@ -2,9 +2,9 @@
-
-
-
+
+
+
diff --git a/src/NzbDrone.Integration.Test/NzbDrone.Integration.Test.csproj b/src/NzbDrone.Integration.Test/NzbDrone.Integration.Test.csproj
index 75bea0f21..d4d0791eb 100644
--- a/src/NzbDrone.Integration.Test/NzbDrone.Integration.Test.csproj
+++ b/src/NzbDrone.Integration.Test/NzbDrone.Integration.Test.csproj
@@ -44,16 +44,17 @@
..\packages\Microsoft.AspNet.SignalR.Client.1.1.3\lib\net40\Microsoft.AspNet.SignalR.Client.dll
-
- ..\packages\Microsoft.Owin.1.1.0-beta2\lib\net40\Microsoft.Owin.dll
+
+ False
+ ..\packages\Microsoft.Owin.2.0.1\lib\net40\Microsoft.Owin.dll
-
+
False
- ..\packages\Microsoft.Owin.Host.HttpListener.1.1.0-beta2\lib\net40\Microsoft.Owin.Host.HttpListener.dll
+ ..\packages\Microsoft.Owin.Host.HttpListener.2.0.1\lib\net40\Microsoft.Owin.Host.HttpListener.dll
-
+
False
- ..\packages\Microsoft.Owin.Hosting.1.1.0-beta2\lib\net40\Microsoft.Owin.Hosting.dll
+ ..\packages\Microsoft.Owin.Hosting.2.0.1\lib\net40\Microsoft.Owin.Hosting.dll
False
diff --git a/src/NzbDrone.Integration.Test/packages.config b/src/NzbDrone.Integration.Test/packages.config
index 101c14bc1..f982437a4 100644
--- a/src/NzbDrone.Integration.Test/packages.config
+++ b/src/NzbDrone.Integration.Test/packages.config
@@ -3,9 +3,9 @@
-
-
-
+
+
+
diff --git a/src/NzbDrone/NzbDrone.csproj b/src/NzbDrone/NzbDrone.csproj
index f428eae7b..155fc5ccc 100644
--- a/src/NzbDrone/NzbDrone.csproj
+++ b/src/NzbDrone/NzbDrone.csproj
@@ -71,13 +71,13 @@
False
..\packages\Microsoft.AspNet.SignalR.Owin.1.1.3\lib\net40\Microsoft.AspNet.SignalR.Owin.dll
-
+
False
- ..\packages\Microsoft.Owin.1.1.0-beta2\lib\net40\Microsoft.Owin.dll
+ ..\packages\Microsoft.Owin.2.0.1\lib\net40\Microsoft.Owin.dll
-
+
False
- ..\packages\Microsoft.Owin.Hosting.1.1.0-beta2\lib\net40\Microsoft.Owin.Hosting.dll
+ ..\packages\Microsoft.Owin.Hosting.2.0.1\lib\net40\Microsoft.Owin.Hosting.dll
False
diff --git a/src/NzbDrone/packages.config b/src/NzbDrone/packages.config
index 19f3a3d8b..268430b6b 100644
--- a/src/NzbDrone/packages.config
+++ b/src/NzbDrone/packages.config
@@ -2,8 +2,8 @@
-
-
+
+