ASP.NET Core versions in Plesk

Follow

Comments

32 comments

  • 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
    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
    Taylor Love

    When will it be added? Any status tracker? 

    0
    Comment actions Permalink
  • Avatar
    Alexander Tsmokalyuk

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

    0
    Comment actions Permalink
  • Avatar
    OHOUO YVES DANIEL

    Hello Is the ASP.NET 2 will be available In Plesk for Linux ?

    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
    OHOUO YVES DANIEL (Edited )

    @Alexandr Tumanov

    i followed all required process but nothing appened.

    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
    OHOUO YVES DANIEL

    ok i'll try to contact them.

    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
    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
    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
    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
    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
    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
    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
    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
    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
    Simple Hosting GmbH

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

    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
    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
    Simple Hosting GmbH

    Hello Pieter

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

    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
    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
    Katherine Moss

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

    0
    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
    Wouter

    what about ASP.NET Core 3.1? why is this so slow to support the latest stable .net core versions?

    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
    Pieter van Kampen

    @Wouter, if you install 3.0 on Plesk, and have access to the server, you can just upgrade to 3.1.1 by downloading the latest kit from Microsoft. You need to first install it with Plesk, so it plays nice, but after that you can install any version.
    I have manually set the application pool, advanced options, to not start 32 bit versions.

    0
    Comment actions Permalink
  • Avatar
    Wouter

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

    0
    Comment actions Permalink

Please sign in to leave a comment.

Have more questions? Submit a request