Cloud Service >> Knowledgebase >> Plesk >> How To Set Up ASP.NET Version For A Website in Plesk?
submit query

Cut Hosting Costs! Submit Query Today!

How To Set Up ASP.NET Version For A Website in Plesk?

Plesk is widely used among companies that offer hosting services to their clients. It reduces the workload of web monitoring and administration. By default, only ASP.NET v4.7.1 is supported. If you're planning to host an ASP.NET website on your server, you need to check that the correct version is configured for your website. This tutorial walks you through the steps to create an ASP.NET web page in Plesk.

Step 1: Access the Plesk Control Panel

Firstly, create a Plesk login. You can access the Plesk control panel by navigating to https: Please navigate your browser to //your_domain:8443 or https://your_server_ip:8443. In the next step, enter your login credentials when prompted.

Step 2: Navigate to the Websites & Domains Section

Once logged in, browse to the left-hand sidebar of your Plesk control panel and look for the "Websites & Domains" section. Scroll in the direction of the icon to reveal the available choices.

Step 3: Select Your Website

In this chapter, under "Websites & Domains," you will see a list of all the websites hosted or active on your Plesk server. Locate a site where you want to set the server to run ASP.NET and insert the associated shortcut link or domain in your browser.

Step 4: Open the ASP.NET Settings

Now, you will view your website management interface by selecting the website you are interested in. In the left sidebar, scroll down until you find the "ASP.NET Settings" option under the "Hosting Settings" section and click on it.

Step 5: Enable ASP.NET for Your Website

On the "ASP.NET Settings" tab, you will ensure ASP.NET is enabled or turned on or off for your website. If ASP.NET is disabled, you will see the "Switch On" button. You have to click on it to enable ASP.NET.

Step 6: Select the ASP.NET Version

Once ASP.NET is enabled, the section "ASP.NET versions" can be seen immediately next to the switch button. Here, the section lists what ASP.NET versions are currently hosted on your Plesk server.

The task is to browse the ASP.NET versions your website requires and then click the orange button for the corresponding version to turn it on for your website. If the desired version is nowhere stated, you can choose to install it as well. A Plesk document or hosting provider is available to consult for further guidance in this regard.

Step 7: Set the Default ASP.NET Version (Optional)

If your website has multiple ASP.NET versions, you can set one of them as the default version. Create an account to start this course today. This default version will be used whenever your website fails to honour the "asp .net file extension."

To set your website's default ASP.NET version, go to "Default version" in the "ASP.NET versions" drop-down list and select the desired version from the list.

Step 8: Save the Changes

The modification done after that, remember you have a button at the bottom which should be clocked so that the changes done can be saved.

Step 9: Verify the ASP.NET Version

When all the changes are applied, you will check if the website is using ASP.NET by simply creating an ASP.NET file in the root directory of your website. Here is how a .NET (ASP) file will run.:

  1. Locate your site's folder via Plesk File Explorer or an FTP client.

  2. Create a fresh file named test. aspx from the Folder Explorer.

  3. Open the file using the test. aspx and insert the following code:

<%@ Page Language="C#" %>

    ASP.NET Version Test

    

ASP.NET Version Test

    

ASP.NET Version: <%= Environment.Version %>



4. Save the test.aspx file and navigate to http://put your domain name/test.aspx or http://your_server_ip/test.aspx in your web browser.

The page will be developed to show the ASP.net version of your website.

Additional Tips and Resources

  • Multiple Website Support: If you have one server that hosts multiple websites, you can configure the different versions of ASP.NET separately by following the instructions in this document.

  • Restart Services: In certain cases, you may have to restart the ASP.NET or Internet Information Services (IIS) service in order for the changes to be applied. The options you seek are in the "Services Management" part of the Plesk control panel.

  • ASP.NET Core Support: Furthermore, apart from ASP.NET, Plesk nullifies compatibility with ASP.NET Core. If you are considering hosting an ASP.NET Core site on a server, comparable measures can be followed to ensure the installation of the required ASP.NET Core version.

  • Plesk Documentation: The official Plesk documentation can be a more helpful resource and tips about the troubleshooting process: https://docs.plesk.com/.

  • Plesk Community Forums: You are welcome to the Plesk community forums, where you can connect with others and get necessary assistance on any problem or specialized question you may have: https://forums.plesk.com/.

If you follow this guide, you will set up the proper ASP.NET version for your website. After reading these tips, you will understand how to develop a website. A successful website needs to have ASP.NET correctly set up to guarantee that your website works without any significant configurations or compatibility problems.

Cut Hosting Costs! Submit Query Today!

Grow With Us

Let’s talk about the future, and make it happen!