Configuring .NET 10 Application Settings in Plesk Print

  • 0

Accessing .NET Core Settings

  1. Log in to Plesk
  2. Go to Websites & Domains
  3. Select your domain
  4. Click .NET Core or ASP.NET Core

Application Configuration Options

Application Root

The directory containing your application files. This is where your published .NET 10 app resides.

Example: /httpdocs or /httpdocs/myapp

Document Root

The directory containing static files (CSS, JavaScript, images). Usually the same as Application Root for most apps.

Application Startup File

The main DLL file that starts your application. This is typically named after your project.

Example: MyWebApp.dll

Environment Variables

You can set environment variables for your .NET 10 application through Plesk:

  1. In the .NET Core settings, look for Environment Variables
  2. Add variables as needed (e.g., ASPNETCORE_ENVIRONMENT=Production)
  3. Click Apply

Common Environment Variables

VariableDescriptionExample Value
ASPNETCORE_ENVIRONMENTApplication environmentProduction, Development, Staging
ASPNETCORE_URLSURLs to listen onhttp://localhost:5000
ConnectionStrings__DefaultConnectionDatabase connectionYour connection string

Application Pool Settings

For .NET Core applications, Plesk automatically configures the Application Pool to use "No Managed Code". This is correct and required for .NET Core apps.

Viewing Application Logs

To troubleshoot issues:

  1. In .NET Core settings, look for View Logs or Application Logs
  2. Check stdout logs for application output
  3. Review error logs for exceptions

Restarting Your Application

After making configuration changes:

  1. Go to .NET Core settings in Plesk
  2. Click Restart or Restart Application
  3. Wait a few seconds for the app to restart
  4. Test your application

appsettings.json Configuration

Your application settings should be in appsettings.json and appsettings.Production.json files. Upload these with your application and ensure sensitive data uses environment variables instead of hardcoded values.


Was this answer helpful?

« Back