Applicable to:
- Plesk for Windows
- Plesk for Linux
Question
What ASP.NET core applications does Plesk support?
Answer
ASP.NET Core 1.x
-
In Plesk for Windows
According to release notes, ASP.NET Core 1.0 is supported since June 20, 2016. Moreover, ASP.NET core was updated to version 1.1 on December 6, 2016.
It is possible to install required components using Plesk Installer and then upload your application manually into hosting using FTP, Visual Studio and etc.
However, this functionality is not present in UI now.
Implementation of UI is a planned feature and will be integrated with future Plesk updates. - In Plesk for Linux
ASP.NET core is not available on Linux.
ASP.NET Core 2.x
-
In Plesk for Windows
ASP.NET Core 2.0 is supported by Plesk Onyx 17.8.
ASP.NET Core 2.2 and ASP.NET Core 2.1 are supported by Plesk Obsidian.
Note: ASP.NET Core 2.2 is updated to version 2.2.6 in Plesk Obsidian.
Install ASP.NET using Plesk Installer and then upload your application manually into hosting using FTP, Visual Studio, etc.
As for other versions, they are not shipped with Plesk, but can be used on a server with Plesk.
The required version can be installed manually using the installer available on .NET Core main website.
After installation, version can be verified by executing the following command in a command prompt:
-
For ASP.Net Core 2.X versions:
C:\> dotnet --info
-
ASP.Net Core 1.X versions:
C:\> dotnet --version
Note: The above command can be used only if .NET Core is installed manually using .NET Core main website.
-
-
In Plesk for Linux
Plesk does not manage it on Linux. It is possible to install it manually but without Plesk support. Download and install manually all the required packages from https://www.microsoft.com/net/download/linux
Comments
22 comments
Sorry this is not clear to me. I have an application that is Asp.NET core 1.1.2. So can I use that or not?
@Pieter van Kampen yes, you can. I think there is no huge difference between Asp.NET core 1.1.1 which is currently shipped with Onyx and Asp.NET core 1.1.2
When will it be added? Any status tracker?
@Taylor The exact ETA is not available. Please use the following page to track ASP.NET Core support updates: https://docs.plesk.com/release-notes/onyx/change-log/
Hello Is the ASP.NET 2 will be available In Plesk for Linux ?
@OHOUO YVES DANIEL
Plesk does not have preinstalled packages for Linux. However, you can do it manually using guides available over the internet, for example:
https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/linux-nginx?view=aspnetcore-2.1&tabs=aspnetcore2x
@Alexandr Tumanov
i followed all required process but nothing appened.
@OHOUO YVES DANIEL
It is best to contact Microsoft Support about the articles on their website.
ok i'll try to contact them.
Error dot net core 2.x
The page cannot be displayed because an internal server error has occurred. Please help
@Sadeesh Kanna
Please check this article:
[HUB] 500 - Internal Server Error on Plesk server
If the article is not helpful I would recommend you submitting a support request:
How to submit a request to Plesk support?
I'm not sure I fully understand the Linux portions of this article. The download link to Microsoft simply points to the .NET Core runtime/sdk downloads, but not necessarily to a plesk package.
Does installing the .NET Core runtime somehow magically make plesk features enabled?
Perhaps my understanding of plesk packages are incorrect. Are plesk packages intended to enable additional functionality inside of the plesk dashboard or are they simply for installing additional runtimes?
@Brandon Plesk on Linux doesn't support .Net core: you won't be able to install it via Plesk or control it via Plesk. However, the article refers to the installation page in case you want to install, configure and manage that manually.
I've downloaded the latest runtime of asp.net core and doesn't work. (.NET Core 2.2 Runtime & Hosting Bundle for Windows v2.2.4: https://dotnet.microsoft.com/download/thank-you/dotnet-runtime-2.2.4-windows-hosting-bundle-installer )
I can't even use dotnet --version as it requires the SDK.
Do we need the SDK or the runtime? I get "HTTP Error 500.0 - ANCM In-Process Handler Load Failure"
@Wouter, you need the hosting bundle on a server with IIS to run a deployed application. You need the SDK on your desktop with appropriate Visual Studio version to create the apps.
The HTTP Error 500.0 - ANCM In-Process Handler Load Failure shows you have a misconfiguration. Very common when you start with deploying I am afraid.
You can read more about it in Dutch here: https://www.pietervankampen.nl/upgrade-naar-asp-net-core-2-2-niet-zo-eenvoudig-als-het-lijkt/
@Wouter - I fought with the very same issue for several days before I found a workaround. 500.0 is a very generic error message used for several different issues, but I'm convinced my specific issue is caused by Plesk explicitly denying access to the infrastructure that makes ASP.NET Core 2.2 applications possible. This may also be your issue.
As noted, you must download the appropriate "ASP.NET Core 2.2 Hosting Bundle" and manually (external to Plesk) install it on your server. After installation, I have three new programs in my server's Control Panel -> Programs -> Programs and Features screen:
However, even after uploading my program into the appropriate hosting folder, I was still getting the 500.0 - ANCM In-Process Handler Load Failure for my application. I found the following message in Event Viewer:
Application 'C:\Inetpub\vhosts\fakedomainname.com\httpdocs\' wasn't able to start. Unexpected exception: status: Access is denied.
: "C:\Program Files (x86)\dotnet\dotnet.exe"
Event ID 1031
Apparently, the current version of Plesk (17.5.3 Update #71 in my case) denies access to the very files you need to run the .NET Core runtime file named dotnet.exe. This file (and others) exists in the "C:\Program Files\dotnet" folder if you're running an x64 application, or in "C:\Program Files (x86)\dotnet" if you're running an x86 application. These dotnet.exe executables are used by IIS to run your ASP.NET Core 2.2 application.
To ensure you have rights to the folder, open IIS on your server, navigate to the Application Pool for your application, and note the Identity of the Plesk-created user account which is used to run your application pool.
Next, open File Explorer and navigate to the appropriate dotnet folder where dotnet.exe resides (see above). Right-click on the dotnet folder and choose the Security tab. If your server is like mine, you'll note that Plesk has explicitly DENIED access to this folder for the security group "psacln" (your application pool account is a member of this group). Click the Edit button, then click the Add button and add your application pool identity account (it should be a local account, not a domain account if your server is on a Windows domain). By default, my application pool's identity account was added with Read & Execute, List Folder Contents, and Read rights to the folder. Press OK enough times to save everything, then restart your application pool in IIS and try to access your web application again. My application worked immediately after giving its application pool this right to read and execute the files in the dotnet folder.
Hopefully this helps you until Plesk adds native support for ASP.NET Core 2.2!
@Warren J. Hairston
Fantastic manual, thank you for sharing it! I am sure other Plesk users will find it helpful!
@Wouter Plesk doesn't support .NET Core on their control panel. I've been using this control panel for many years. To setup your .net core, you must download ASP.NET Core Runtime and Hosting Bundle. Once it is done, make sure you change your application pool to No Managed Code. My site run perfectly on my hosting server. You can also read this post https://windowswebhostingreview.com/asp-net-core-hosting-3-simple-steps-to-fix-502-5-error-in-asp-net-core/, it might helpful. Good luck!
When will be .net version 3.x supported by plesk?
Hello Simple Hosting GmbH,
According to the information I have, this functionality is expected at the end of Q4, 2019 or at Q1, 2020.
Hi Simple Hostng GmbH,
it is not really a big deal. There are more security patches on .NET Core than Plesk will ever support. I am running Plesk with Asp.Net Core 3.0, and have run it with every version since 1.1
Just enable Core support in Plesk, and then install the latest Hosting and Runtime bundle using Remote Deskop. You can then also install point releases or patches this way. Web deploy works.
Hello Pieter
Thanks for your info. we installed .net Core hosting package and it's working.
Please sign in to leave a comment.