• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Question asp.net core support in plesk

Eax

New Pleskian
on updated onyx plesk i see asp.net core

i decided to try this , and install core package from upgrade section

Now , i cant see any section on plesk to control this feature for my Subscriptions .

and after all i see AspNetCoreModule on iis .

also dotnet installed
Code:
C:\Users\Administrator>dotnet

Microsoft .NET Core Shared Framework Host

  Version  : 1.0.1
  Build    : cee57bf6c981237d80aa1631cfe83cb9ba329f12

i tried to upload sample hello world
then i create vs.net 2015 simple empty .net core web application


this is my project.json

Code:
{
  "dependencies": {
    "Microsoft.NETCore.App": {
      "version": "1.0.1",
      "type": "platform"
    },
    "Microsoft.AspNetCore.Diagnostics": "1.0.0",
  
    "Microsoft.AspNetCore.Server.IISIntegration": "1.0.0",
    "Microsoft.AspNetCore.Server.Kestrel": "1.0.1",
    "Microsoft.Extensions.Logging.Console": "1.0.0"
  },

  "tools": {
    "Microsoft.AspNetCore.Server.IISIntegration.Tools": "1.0.0-preview2-final"
  },

  "frameworks": {
    "netcoreapp1.0": {
      "imports": [
        "dotnet5.6",
        "portable-net45+win8"
      ]
    }
  },

  "buildOptions": {
    "emitEntryPoint": true,
    "preserveCompilationContext": true
  },

  "runtimeOptions": {
    "configProperties": {
      "System.GC.Server": true
    }
  },

  "publishOptions": {
    "include": [
      "wwwroot",
      "web.config"
    ]
  },

  "scripts": {
    "postpublish": [ "dotnet publish-iis --publish-folder %publish:OutputPath% --framework %publish:FullTargetFramework%" ]
  }
}

published files worked on my local iis
after upload files to my server

it not work.

on application event log i see
Code:
Failed to start process with commandline '"dotnet" .\WebApplication2.dll', ErrorCode = '0x80070002'.


what wrong ?!
what need to configure.


thanks
 
Just for your information:

Your error: => ErrorCode = '0x80070002' is a result of => "STATUS_OBJECT_PATH_NOT_FOUND" or "STATUS_OBJECT_NAME_NOT_FOUND"
 
I think that you can try to explicitly set the path to dotnet.exe in the web.config for the application to work properly.
 
I think that you can try to explicitly set the path to dotnet.exe in the web.config for the application to work properly.

i tried all possible modes before

Code:
Failed to start process with commandline '"c:\PROGRA~1\dotnet\dotnet.exe" WebApplication2.dll', ErrorCode = '0x80070005'.

Code:
Failed to start process with commandline '"C:\Program Files\dotnet\dotnet.exe" WebApplication2.dll', ErrorCode = '0x80070005'.

Code:
Failed to start process with commandline '"c:\PROGRA~1\dotnet\dotnet.exe" C:\Inetpub\vhosts\domain.com\httpdocs\WebApplication2.dll', ErrorCode = '0x80070005'.

Code:
Failed to start process with commandline '"dotnet" C:\Inetpub\vhosts\domain.com\httpdocs\WebApplication2.dll', ErrorCode = '0x80070002'.


this is standard "IISIntegration.Tools" generated code .
Code:
<aspNetCore processPath="dotnet" arguments="WebApplication2.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" forwardWindowsAuthToken="false" />


UPDATE
also i see that , when i try to run app trough command line

Code:
dotnet C:\Inetpub\vhosts\hygenic.ir\httpdocs\WebApplicati
on2.dll
The specified framework 'Microsoft.NETCore.App', version '1.0.1' was not found.
  - Check application dependencies and target a framework version installed at:
      C:\Program Files\dotnet\shared\Microsoft.NETCore.App
  - The following versions are installed:
      1.0.0
  - Alternatively, install the framework version '1.0.1'.

possible install another version of .net core manually ?
or i need to wait plesk repository update with new version ?

now .net core 1.1 released


update

i published sample app with version 1.0

nothing changed
Code:
Failed to start process with commandline '"c:\PROGRA~1\dotnet\dotnet.exe" C:\Inetpub\vhosts\domain.com\httpdocs\WebApplication1.dll', ErrorCode = '0x80070005'.

now i can run application trough command line

Code:
"c:\PROGRA~1\dotnet\dotnet.exe" C:\Inetpub\vhosts\domain.com\httpdocs\WebApplication1.dll
Hosting environment: Production
Content root path: C:\Users\Administrator
Now listening on: http://localhost:5000
Application started. Press Ctrl+C to shut down.


some thing wrong with plesk configuration
 
Last edited:
We are updating ASP.NET core support to 1.0.1 and 1.1.0 in one of the nearest microupdates. Your application should work without modifications.
Also, you need to grant Read&Execute permissions for psacln group for C:\Program Files\dotnet folder. This is known issue and it will be fixed as well.
 
  • Like
Reactions: Eax
We are updating ASP.NET core support to 1.0.1 and 1.1.0 in one of the nearest microupdates. Your application should work without modifications.
Also, you need to grant Read&Execute permissions for psacln group for C:\Program Files\dotnet folder. This is known issue and it will be fixed as well.
thank you
also please provide option in plesk panel to allow user use .net core or disallow user to use it

:)
 
Back
Top