ASP.NET Core support in Plesk

Follow

Comments

36 comments

  • Avatar
    Robert Asilbekov

    @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

    1
    Comment actions Permalink
  • Avatar
    Pieter van Kampen

    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?

    1
    Comment actions Permalink
  • Avatar
    Pieter van Kampen

    @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/

    1
    Comment actions Permalink
  • Avatar
    Ahmed Heasat

    After I install .NET Core 1.x and 2.0 as components using Plesk installer,

    And install SDK and runtime components like the image below:

    I still got (404 - File or directory not found):

    Please help.

    1
    Comment actions Permalink
  • Avatar
    Warren J. Hairston (Edited )

    @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:

    1. Microsoft .NET Core 2.2.4 - Windows Server Hosting
    2. Microsoft .NET Core Runtime - 2.2.4 (x64)
    3. Microsoft .NET Core Runtime - 2.2.4 (x86)

    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!

    1
    Comment actions Permalink
  • Avatar
    Alexey Lapshin

    Hello @Katherine Moss

    ASP.NET Core 3.0 is supported since Plesk Obsidian 18.0.23. The article updated.

    0
    Comment actions Permalink
  • Avatar
    Pieter van Kampen

    @Ahmed Heasat What version of Plesk are you using? In Plesk Obsidian asp.net core 1.0 is no longer available. 1.0 is obsolete. Install 2.1 should work. If you really need 2.0, you can download it from Microsoft, version 2.0.9, but it is out of support.

    @Ankur B Version 2.2 is out of support. You can still download it from Microsoft. 2.2.207

     

    https://dotnet.microsoft.com/download/dotnet-core 
    Download the hosting bundle

    Once you install the version through Plesk (so it knows), you can download the version you really need from Microsoft and install it using RDP. 

    If you think about upgrading, go to NET 5.0. There are hardly any differences in code between 3.1 and 5.0, so you might as well use that directly. 

    0
    Comment actions Permalink
  • Avatar
    Taylor Love

    When will it be added? Any status tracker? 

    0
    Comment actions Permalink
  • Avatar
    Wouter (Edited )

    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" 

    0
    Comment actions Permalink
  • Avatar
    Katherine Moss

    Latest is version 3.0. What's up with version 3?

    0
    Comment actions Permalink
  • Avatar
    Sadeesh Kanna

    Error dot net core 2.x

    The page cannot be displayed because an internal server error has occurred. Please help

    0
    Comment actions Permalink
  • Avatar
    Alexey Lapshin

    Hello @Wouter

    Since this version of Core has some issues like https://github.com/dotnet/aspnetcore/issues/18019 support of ASP.NET Core 3.1 is postponed. As soon as support will be available Plesk change log will be updated.

    0
    Comment actions Permalink
  • Avatar
    Neil

    Hi if I add my webapi created in asp.net core 2.0.0 it gives `HTTP Error 502.5`

    stating that .net core is not installed on the server. but this is on the web interface so shouldn't the plesk have this automatically working? what is wrong and why is there no documentation or help available for hosting .net core webservice/websites on this plesk platform 

     

    0
    Comment actions Permalink
  • Avatar
    Ankur B

    Hello,

    Microsoft .NET Core 2.1 - Windows Server Hosting & Microsoft .NET Core 3.1 installed on the server.

    But we require 2.2 as we are getting below error to access site. What is the solution.

    Using latest Plesk version and Windows 2016 Std

     

    ==========================

    It was not possible to find any compatible framework version
    The framework 'Microsoft.AspNetCore.App', version '2.2.0' was not found.
    - The following frameworks were found:
    2.1.17 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
    2.1.19 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
    2.1.20 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
    2.1.22 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
    3.1.3 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
    3.1.5 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
    3.1.6 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
    3.1.8 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]You can resolve the problem by installing the specified framework and/or SDK.The specified framework can be found at:
    - https://aka.ms/dotnet-core-applaunch?framework=Microsoft.AspNetCore.App&framework_version=2.2.0&arch=x64&rid=win10-x64
    ==========================
    0
    Comment actions Permalink
  • Avatar
    Pavel Mikhaylov

    @OHOUO YVES DANIEL

    It is best to contact Microsoft Support about the articles on their website.

    0
    Comment actions Permalink
  • Avatar
    Bato Tsydenov

    @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?

    0
    Comment actions Permalink
  • Avatar
    Lev Iurev

    @Chris Tomasson

    Plesk does not provide management tools for .net core. If it is installed on the server it will work. Supported versions:

     

    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.

    0
    Comment actions Permalink
  • Avatar
    Ivan Postnikov

    Hello Simple Hosting GmbH,

    According to the information I have, this functionality is expected at the end of Q4, 2019 or at Q1, 2020.

    0
    Comment actions Permalink
  • Avatar
    Simple Hosting GmbH

    Hello Pieter

    Thanks for your info. we installed .net Core hosting package and it's working.

    0
    Comment actions Permalink
  • Avatar
    Alexandr Tumanov

    @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

     

    0
    Comment actions Permalink
  • Avatar
    Ivan Postnikov

    Hello,

    Ankur B

    The reason why this version isn't displayed for you isn't clear. It's usually caused by Plesk Onyx in use.

    In case you have Plesk Obsidian (18), you have 2 options:

    1. Install version 2.2. manually https://dotnet.microsoft.com/download/dotnet-core/2.2

    2. Submit a support request to find the root cause.

    Ahmed Heasat

    In that case there're high chances that there's issue with code. COnsider reviewing it with the app developer.

    0
    Comment actions Permalink
  • Avatar
    Wouter

    Pieter van Kampen Thanks, i'll give it a try!

    0
    Comment actions Permalink
  • Avatar
    Anton Maslov

    @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. 

    0
    Comment actions Permalink
  • Avatar
    Chris Tomasson

    @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!

    0
    Comment actions Permalink
  • Avatar
    Pieter van Kampen

    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.

     

    0
    Comment actions Permalink
  • Avatar
    Brandon Clapp (Edited )

    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?

    0
    Comment actions Permalink
  • Avatar
    OHOUO YVES DANIEL (Edited )

    @Alexandr Tumanov

    i followed all required process but nothing appened.

    0
    Comment actions Permalink
  • Avatar
    Chris Tomasson

    It seems newest Plesk version doesn't officially support for .net core. I use Asphostportal shared hosting plan here and they have used newest Plesk version. But, when I observed to their control panel, there is no option to tick .net core. But, although I can't see this option on contorl panel, .net core can work properly on their server. I just need to contact their support and ask them to setup .net core. It will better if I can tick .net core option on control panel so I don't need to contact their support again. 

    0
    Comment actions Permalink
  • Avatar
    Alisa Kasyanova

    @Warren J. Hairston
    Fantastic manual, thank you for sharing it! I am sure other Plesk users will find it helpful!

    0
    Comment actions Permalink
  • Avatar
    Simple Hosting GmbH

    When will be .net version 3.x supported by plesk?

    0
    Comment actions Permalink

Please sign in to leave a comment.

Have more questions? Submit a request