Comments on: Self-hosting a .NET API: Choosing between OWIN with ASP.NET Web API and ASP.NET Core MVC 1.0 https://ushipblogsubd.wpengine.com/shipping-code/self-hosting-a-net-api-choosing-between-owin-with-asp-net-web-api-and-asp-net-core-mvc-1-0/ Fri, 10 Aug 2018 18:32:50 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: Ken Hadden https://ushipblogsubd.wpengine.com/shipping-code/self-hosting-a-net-api-choosing-between-owin-with-asp-net-web-api-and-asp-net-core-mvc-1-0/#comment-502 Tue, 10 Jan 2017 09:20:00 +0000 https://ushipblogsubd.wpengine.com/?p=4328#comment-502 Thanks for posting this. Always nice to see a company share IP.

]]>
By: Peter Kottas https://ushipblogsubd.wpengine.com/shipping-code/self-hosting-a-net-api-choosing-between-owin-with-asp-net-web-api-and-asp-net-core-mvc-1-0/#comment-501 Sat, 31 Dec 2016 06:47:00 +0000 https://ushipblogsubd.wpengine.com/?p=4328#comment-501 Hello everybody, I found this topic while looking for a solution to a similar problem. Ended up implementing something that works pretty much like very (very) simplified Topshelf. You can easily run as console and/or install, uninstall and so one as a service. I think it can be pretty useful for somebody. You can find the code here : https://github.com/PeterKottas/DotNetCore.WindowsService and there’s nuget here as well https://www.nuget.org/packages/PeterKottas.DotNetCore.WindowsService/ . Enjoy 🙂 This is of course for pure .net core 1.1 apps.

]]>
By: jw https://ushipblogsubd.wpengine.com/shipping-code/self-hosting-a-net-api-choosing-between-owin-with-asp-net-web-api-and-asp-net-core-mvc-1-0/#comment-499 Wed, 28 Dec 2016 06:40:00 +0000 https://ushipblogsubd.wpengine.com/?p=4328#comment-499 I cannot seem to get past this error:

“Type ‘Microsoft.Owin.OwinContext’ in assembly ‘Microsoft.Owin, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35’ is not marked as serializable.”

]]>
By: Ivan Valle https://ushipblogsubd.wpengine.com/shipping-code/self-hosting-a-net-api-choosing-between-owin-with-asp-net-web-api-and-asp-net-core-mvc-1-0/#comment-498 Fri, 23 Dec 2016 18:04:00 +0000 https://ushipblogsubd.wpengine.com/?p=4328#comment-498 In reply to pgoostree.

If you’re using Topshelf, you can configure what the Windows service does when the self-hosted process shuts down. See: http://docs.topshelf-project.com/en/latest/configuration/config_api.html#id1

]]>
By: pgoostree https://ushipblogsubd.wpengine.com/shipping-code/self-hosting-a-net-api-choosing-between-owin-with-asp-net-web-api-and-asp-net-core-mvc-1-0/#comment-497 Sat, 17 Dec 2016 16:45:00 +0000 https://ushipblogsubd.wpengine.com/?p=4328#comment-497 Has anyone dealt with restarting the self host process if it shuts down for any reason?

]]>
By: Ivan Valle https://ushipblogsubd.wpengine.com/shipping-code/self-hosting-a-net-api-choosing-between-owin-with-asp-net-web-api-and-asp-net-core-mvc-1-0/#comment-495 Mon, 14 Nov 2016 16:16:00 +0000 https://ushipblogsubd.wpengine.com/?p=4328#comment-495 In reply to Robert Grant.

Self-hosting should allow you to use those authentication methods (and any feature, really) as long as its functionality comes from application code (i.e. not an IIS module) and doesn’t have a dependency on HttpContext.Current.

]]>
By: Robert Grant https://ushipblogsubd.wpengine.com/shipping-code/self-hosting-a-net-api-choosing-between-owin-with-asp-net-web-api-and-asp-net-core-mvc-1-0/#comment-494 Sat, 05 Nov 2016 08:25:00 +0000 https://ushipblogsubd.wpengine.com/?p=4328#comment-494 In reply to Ivan Valle.

Does self-hosting allow for the usual authentication methods such as Kerberos, SAML, etc?

]]>
By: neel bhatt https://ushipblogsubd.wpengine.com/shipping-code/self-hosting-a-net-api-choosing-between-owin-with-asp-net-web-api-and-asp-net-core-mvc-1-0/#comment-492 Sun, 09 Oct 2016 10:03:00 +0000 https://ushipblogsubd.wpengine.com/?p=4328#comment-492 Have a look here: https://neelbhatt40.wordpress.com/2016/10/09/mvc6-net-core-applications-are-self-hosted-optional-iis-integration/

]]>
By: Ivan Valle https://ushipblogsubd.wpengine.com/shipping-code/self-hosting-a-net-api-choosing-between-owin-with-asp-net-web-api-and-asp-net-core-mvc-1-0/#comment-491 Mon, 26 Sep 2016 17:05:00 +0000 https://ushipblogsubd.wpengine.com/?p=4328#comment-491 In reply to ayman metwally.

You definitely can (and should) self-host ASP.NET Core MVC applications. It gives you the ability to develop in and deploy to non-Windows environments, since you wouldn’t be depending on IIS. Even hosting in IIS simply forwards the IIS request to the self-hosted Kestrel server.

That being said, I wouldn’t use the Kestrel server on the edge: I would have something like nginx sitting in front of it as a proxy, as it has been in production for much longer, and you get much more out of the box like load balancing.

]]>
By: ayman metwally https://ushipblogsubd.wpengine.com/shipping-code/self-hosting-a-net-api-choosing-between-owin-with-asp-net-web-api-and-asp-net-core-mvc-1-0/#comment-489 Thu, 15 Sep 2016 03:04:00 +0000 https://ushipblogsubd.wpengine.com/?p=4328#comment-489 Great article ..
What I knew that I can’t self-host MVC applications .. Wasn’t that true?

]]>