Configuring .NET 8 Application Settings in Plesk Print

  • 0

Overview

Configure your .NET 8 application settings through Plesk's control panel interface for optimal performance and functionality.

Accessing .NET Core Settings

  1. Log in to Plesk control panel
  2. Go to Websites & Domains
  3. Select your domain
  4. Click Hosting Settings

Essential Configuration Options

.NET Core Version

Select 8.0.x from the dropdown. This ensures your app runs on the .NET 8 runtime.

Application Startup File

Enter your main DLL name (e.g., MyApp.dll). This is the entry point for your application.

Application Root

Set to / for root deployment or specify a subfolder like /app.

Environment Variables

To set environment variables for your .NET 8 app:

  1. Create or edit web.config in your httpdocs folder
  2. Add environment variables in the aspNetCore section:
<aspNetCore processPath="dotnet" arguments=".MyApp.dll">
  <environmentVariables>
    <environmentVariable name="ASPNETCORE_ENVIRONMENT" value="Production" />
    <environmentVariable name="MyCustomSetting" value="MyValue" />
  </environmentVariables>
</aspNetCore>

appsettings.json for Production

Create appsettings.Production.json for production-specific settings:

{
  "Logging": {
    "LogLevel": {
      "Default": "Warning"
    }
  },
  "ConnectionStrings": {
    "DefaultConnection": "Server=localhost;Database=mydb;User Id=myuser;Password=mypass;TrustServerCertificate=True;"
  }
}

Application Pool Settings

Access via Websites & DomainsDedicated IIS Application Pool:

  • Idle Timeout: Adjust to prevent app recycling during inactivity
  • Private Memory Limit: Increase if your app requires more memory
  • Regular Time Interval: Set recycling schedule

Important Notes

  • Always restart the application pool after configuration changes
  • Use the Restart App button in Plesk .NET Core settings
  • Check stdout logs if application fails to start after changes

Was this answer helpful?

« Back