• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Issue Configuration to host ASP.NET Core 3.1 website on Plesk (Windows / IIS)

wst

New Pleskian
Hi,

I'm having troubles migrating an existing asp.net core 3.1 website with SQL Server database to a Windows server with Plesk. (sqlexpress and iis are enabled).


Microsoft .NET Core 3.1.11 - Windows Server Hosting bundle is installed.
Microsoft .NET Core Runtime - 3.1.11 (x64 && x86) are installed.

I created a new website in Plesk for my domain.

I've added the database in SQL Server and registered the database in Plesk ( How to register an existing database in Plesk )

In IIS I've set the application pool to No Managed Code.

in my httpdocs/logs folder I see my regular logging that the site seems to be started:

Code:
2021-01-19 12:45:12.187 +00:00 [INF] Application started. Press Ctrl+C to shut down.
2021-01-19 12:45:12.187 +00:00 [INF] Hosting environment: Production
2021-01-19 12:45:12.187 +00:00 [INF] Content root path: C:\Inetpub\vhosts\xxx.be\httpdocs
2021-01-19 12:45:12.212 +00:00 [INF] Request starting HTTP/1.1 GET http://xxx.be/ 
2021-01-19 12:45:12.225 +00:00 [INF] Request finished in 16.5602ms 307

I've enabled stdoutLogEnabled="true", files are created but stay empty (0KB).


I publish in VS2019 with:
Release, netcoreapp3.1, Framework-Dependent, win-x64

my webconfig has:

Code:
      <handlers>
        <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
      </handlers>
      <aspNetCore processPath=".\xxx.exe" stdoutLogEnabled="true" stdoutLogFile=".\logs\stdout" hostingModel="InProcess" />
  </system.webServer>
  <system.web>
    <compilation tempDirectory="C:\Inetpub\vhosts\xxx.be\tmp" />
  </system.web>

If I set the "App_Offline.html" file in the httpdocs directory I see the html, but I don't see my asp.net core app.

"This site can't be reached" ERR_CONNECTION_RESET in chrome


Any suggestions? is this a mismatch of InProcess vs. Framework-Dependent publishing, or something else?

I could also not find clear guided documentation on Plesk related to this.
 
Check in Plesk under Dedicated IIS Application Pool if the checkbox for "Enable 32 bit application" makes any difference.

Another thing you can try, publish with target runtime: "portable".

What error message do you get when browsing to this site?
 
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" />
AspNetCoreModuleV2=>AspNetCoreModule Did u try this?
 
Back
Top