Hosting .Net Core Web API using Topshelf - asp.net-core-webapi

I have a .Net Core 3.1 Web API project which is currently hosted using IIS.
Is there a way to Host this web api in windows service Using TopShelf Nuget package as I don’t want to host it in IIS
If any reference document is available share that as it will be useful for understanding.

Here are some wonderful documents from Microsoft MVP to explain how to running Asp.Net Core as Windows service by TopShelf. I hope it can help you.
Link: https://anthonygiretti.com/?s=Topshelf.

Related

Can I HOST ASP.NET Core app and ASP.NET Framework app on the same server

I have a server that is currently hosting ASP.NET Framework applications and I have an ASP.NET Core application that I want to host on the same server. Will downloading ASP.NET Core Module (for hosting) cause any issues with the existing .NET Framework apps? And after that will hosting the new .NET Core application cause issues with the existing .NET Framework apps?
I know that you can develop .NET Core and .NET Framework at the same time since Core is self-contained, but can you host them on the same server at the same time?
Note: If you can include documentation from somewhere that supports your answer that would be greatly appreciated.
Thanks in advance.

Deploy ASP.NET Web API in Ubuntu

I'm a .NET developer, I want to develop an ASP.NET Web API that will be deployed on ubuntu and will be called by a J2EE application.
is that what I would have deploying problems on ubuntu?
do you think that ASP.NET Web API is a good choice? or should I develop my API in ASP.NET CORE?
thanks.
You should choose Asp.Net Core over Asp.Net .
You can not deploy asp.net web api application to ubuntu, but you can with asp.net core web api.
Its better to go for asp.net core for linux platform. You can deploy this with the help of docker as well.

ASP.NET without Web Api package

I build a web api service for mobile and web, it works fine on azure, but soon I realised that Nuget Manager has NOT installed Web Api package "Microsoft.AspNet.WebApi".
I know that Core Controller combines MVC and Web Api functions for DNX Core, it can work without web api package. But DNX 4.5.1 also does not contain Web Api package. How will my app work on this platform (DNX 4.5.1)?
Thank you!
What about this Microsoft ASP.NET Web API 2.2 5.2.3 ?
This package contains everything you need to host ASP.NET Web API on
IIS. ASP.NET Web API is a framework that makes it easy to build HTTP
services that reach a broad range of clients, including browsers and
mobile devices. ASP.NET Web API is an ideal platform for building
RESTful applications on the .NET Framework.
Here is the link : Microsoft ASP.NET Web API 2.2 5.2.3
It looks like you are using ASP.NET 5 and MVC 6. In this case you don't need Microsoft.AspNet.WebApi (for MVC 4) nor Microsoft.AspNet.WebApi 2 (for MVC 5)
There is no more separate package for Web API in ASP.NET Core.
There is new combined package called Microsoft.AspNet.Mvc.Core (6.0.0-rc1-final)
Everything will work on both DNX 451 and DNX CORE

Deployment of ASP.NET vNext Application to Azure Cloud Services

Is it possible to deploy an ASP.NET vNext web application to Azure Cloud Services? And if yes, does it matter if it's build on the aspnet50 or the aspnetcore50 framework?
The Azure Cloud Service Visual Studio template, even in 2015 CTP seems to support only .NET Framework 4.x.
It's not supported yet but if you really want to you can do something like create a worker role setup script (which installs the kvm, kre etc.), then follow steps like this http://www.codeproject.com/Articles/331425/Running-an-EXE-in-a-WebRole-on-Windows-Azure to run it and bootstrap your aspnetcore50 app. It's not pretty or easy but it's the only way to run ASP.NET 5.0 stuff in a worker role at the moment.

Host an asp.net web application in IIS

I have a query while hosting my web application in IIS:
* whether we need .net framework to be installed in the hosting machine with IIS?
SHort answer - yes, you need the .NET Framework installed. A .NET application won't run without the Framework.
You'll also want to make sure you set the correct framework for the web application under the ASP.NET tab, depending on what version the application was written in.
Yes, as the .NET framework is what allows a .NET application to be utilized. Here is a complete guide from Microsoft: http://msdn.microsoft.com/en-us/library/ms178477.aspx

Resources