ASP.NET (Windows) Configuration in Plesk

This document contains information to adjust your site's ASP.NET settings from the Plesk panel: connection strings, custom errors, debugging, encoding, security, and session.

If your site uses an ASP.NET application, from Plesk you can change its main options without manually editing files. Changes apply to the entire site or, if you prefer, only to a virtual directory.

Access: log in to the client portal, open your service, and click on Go to Plesk. Then go to Websites & Domains → ASP.NET Settings.

If you don't see ASP.NET Settings, check that ASP.NET is enabled in Hosting Settings. To apply different options to a specific folder, go to Virtual Directories, click on the folder, and then on ASP.NET Settings.

Version and Default Values

  • Change version: allows you to choose the ASP.NET version your site uses. Choose the one required by your application.
  • Restore default settings: reverts all options to their original values. Use this if you changed something and the site stopped working.

Connection Strings

  • In Connection String Manager you can define the data your application uses to connect to a database. The first time, an example string is shown, which you can delete if you don't use it.
  • To add one, click on Add Connection String and fill in Name and Connection parameters.
  • To remove one, click on Remove next to the string.

To know what data a string requires, search for connection string in the knowledge base.

Custom Errors

In Custom Error Settings, choose the Custom error mode:

  • On: visitors see your custom error pages.
  • Off: technical error details are shown to any visitor.
  • RemoteOnly: visitors see custom pages, and technical details are only shown on the server. This is the default value.

To assign a page to an error, click on Add Custom Error and fill in the Status code (for example, 404) and the Redirect URL, which is the address of your error page. You cannot repeat a code that is already in the list, but you can change its URL.

Security: do not leave the mode on Off on a published site. Error details can expose internal information about your application. Use it only briefly to troubleshoot an issue and then switch back to RemoteOnly or On.

Compilation and Debugging

  • Default webpage language: the language used by default to compile pages, for example c# or vb.
  • Enable debugging: shows the code snippet where the error occurred. It consumes more memory and makes the site slower, so enable it only while testing and disable it when the site is published.

Globalization

  • Request encoding and Response encoding: the encoding for what your site receives and sends. By default it is utf-8, recommended for Spanish.
  • File encoding: the encoding used to read .aspx, .asmx, and .asax files. By default it is Windows-1252. If your files are saved in utf-8 and you see strange characters in accents or tildes, change it to utf-8.
  • Culture and UI culture: define the format of dates, numbers, and currencies, and the language of resources. For Argentina, choose Spanish (Argentina).

Code Access Security (CAS)

The CAS security level defines which server resources your application can access. Levels range from Full, the most permissive, to Minimal, the most restrictive; the default value is Medium. If you choose a level that is too low, your application may stop working.

Session

  • Authentication mode: choose Forms if your application has its own login form, or Windows if you use web server authentication (for example, password-protected directories).
  • Session timeout (minutes): how much inactivity time is allowed before logging out the visitor. The default is 20.

When you are done, click OK to save and exit, or Apply to save and stay on the screen.

Common Issues

  • ASP.NET Settings does not appear: enable ASP.NET in Hosting Settings. If you cannot, contact us via support ticket.
  • After a change, the site throws an error: use Restore default settings and make the changes again one by one.
  • My application gives permission or security errors: it may need a higher CAS security level. Check your application's requirements.
  • I see strange characters in accents or tildes: check that File encoding matches the encoding with which you saved your files.
  • Visitors lose their session very quickly: increase the Session timeout (minutes).
  • My application needs more resources: you can upgrade your service by contacting the sales department from the client portal or via online chat.

If you need help with ASP.NET configuration, open a ticket from the client portal or inquire via the site's online chat.

  • configuración asp plesk
  • 5 Users Found This Useful
Was this answer helpful?

Related Articles

MSSQL Administration via Management Studio.

This document contains information on how to connect to your Microsoft SQL Server databases from...

MSSQL - Synchronizing data to a database.

This document contains information on how to transfer the structure and data of a Microsoft SQL...

Copia de bases de datos en Plesk

Este documento contiene información para copiar una base de datos completa o solo su estructura...

Database access with connection string using Plesk

This document contains information about what a connection string is and what data you need to...

Creating MySQL and MSSQL databases

This document contains information for creating MySQL or Microsoft SQL Server databases and their...