How to Host ASP.Net Core API in cPanel? - asp.net-core

How to Host ASP.Net Core API application in cPanel. Please explain step by step

You can use the WHM plugin called NexusCore
See https://nexuscore.io/
They have a freemium license for up to 5 accounts.

Cpanel? Does your hosting provider support .NET Core? You might need to check it with them first. If you are using Windows platform and use Plesk control panel, you can use Webdeploy to publish it, you can read this tutorial https://windowswebhostingreview.com/how-to-publish-using-web-deploy-with-plesk-control-panel/

Related

What's the equivalent of htpasswd in ASP.NET Core

I am working on an ASP.NET Core web application.
Please note I am not working with IIS.
The maintenance team, in charge of the server administration does not have access to the application source code.
Is it possible for the maintenance team to add a user/password restriction to access the application ?
It is possible with a php application running on apache server with .htaccess/.htpasswd mechanism. This mechanism is independent of the application.
Is it possible to do the same with a .NET Core Kestrel web server ?
Thanks

Blazor wasm hosted application with company AD windows authentication

I am trying to figure out how can I call blazor wasm hosted application to my company's AD directory and get user.identity information.i am just running in circles.i don't want to use identity server or azure Ad.can someone please share code. The actual working code. Company policy is not allowing to use sticky sessions so can't use blazor server. Please any help.much appreciated.code would be much appreciated. I am surprised there is no such code out there. I am using .net 5
You'll really struggle to get this to work - from MS website:
We don't recommend using Windows Authentication with Blazor Webassembly or with any other SPA framework. We recommend using token-based protocols instead of Windows Authentication, such as OIDC with Active Directory Federation Services (ADFS).
Reference: https://learn.microsoft.com/en-us/aspnet/core/blazor/security/webassembly/?view=aspnetcore-5.0#windows-authentication
I highly suggest switching to an OIDC implementation instead. ADFS supports this and your company might already have this setup on the network.

Using Windows Authentication with Azure Service Fabric with ASP.NET Core

I want to use an ASP.NET Core Web API Service that should run in Azure Service Fabric. Is it possible to use Windows Authentication to secure the web Service?
I want to prevent that the user who uses this needs to log into the System manually.
Only when using WebListener. Kestrel doesn't support it, because it is a cross platform implementation.
Here's an example.

Can ASP.NET vNext with .NET core be hosted outside of IIS?

For Mono, it is explicit that ASP.NET can be hosted outside IIS on Apache or Nginx
Since the 1.0.0 release is nearby, I was looking at the publishing aspects of open source ASP.NET vNext.
Can ASP.NET vNext be hosted outside of IIS on a *nix server such as Ubuntu?
Yes, ASP.NET Core can be hosted at linux.
Have you tried this documentation, in which helps to install in Ubuntu 14.04?
AspNet Core has its own web server called Kestrel. Anytime you run an Asp.Net Core web app you run it using this server. IIS or Nginx are used as reverse proxies you can use when you want to expose your app in the wild (they can handle authentication etc.). During development you can just Kestrel directly without have to set up IIS or Nginx.
I dont know if it is working with Nginx, but Apache Server has a module called mod_asp which is a bridging component to the .NET runtime. Maybe that one is worth a try.

Hosting for MVC4 projects

I tried searching for a hosting company that would support MVC4 but I couldn't find any - I would like to deploy my MVC4 application online but I do not know a hosting company with good prices.
Could you give me a list?
Bin-deployed MVC 4 apps should run on any hoster that supports MVC 3.
As #marcind suggested, your app will run on any hosting company which supports .NET Framework 4 and integrated mode for application pool. You just need to include the necessary dlls inside the bin folder under root directory.
You also has a way to deploy and run your app on classic mode but you need a little bit more setup. See this post:
Running ASP.NET MVC Under IIS 6.0 and IIS 7.0 Classic Mode : Solution to Routing Problem
As for your request on hosting company suggestion, here is not a place to ask recommendations on buying products or services.
I have deployed Mvc 3 based website by using below tutorial on Mochahost.
Do the Same For MVC 4.(Note : Don't Forget to include necessary dlls).
http://www.mochasupport.com/kayako/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=568