How to Set Up Custom Error Pages for Your ASP.NET Website on Windows Hosting? Print

  • Updated on 07-May-2024
  • 22


A great way to provide visitors with a smoother and more user-friendly experience is by setting up custom error pages for your ASP.NET website. This becomes especially important when using a shared Windows hosting service like our ASP.NET hosting. And the good news is, if your hosting provider uses the Plesk Panel, the process becomes even more straightforward.

No need to worry if you're new to all this. We've broken down the process into simple steps to help you get started.

Step-by-step Guide

Before you begin, ensure you can access your ASP.NET project and the Plesk Panel on your shared Windows hosting server.

Step 1: Create Your Custom Error Pages

The first thing you need to do is create your custom error pages within your ASP.NET project. Be sure to design them in an informative and user-friendly manner. You can create different pages for various error types, such as 404, 500, etc.

Step 2: Upload Custom Error Pages to the Server

Upload the custom error pages you created to your server using the File Manager in Plesk Panel. Remember the directory where you upload these pages as needed in the next step.

Step 3: Configure Custom Error Pages in Plesk

After uploading the custom error pages, follow these steps:

  1. Log in to your Plesk Panel.
  2. Find your domain name in the 'Websites & Domains' tab.
  3. Under your domain name, look for the 'Hosting Settings' link and click on it.
  4. Scroll down to find the 'Custom error documents' section.
  5. You can configure each error code with a custom error page here. For instance, to set up a custom 404 error page, find '404 Not Found' in the list, click on it and then enter the path to your custom 404 error page in the 'Location of the Error Document' field.
  6. Repeat this process for all the error pages you want to customize.
  7. Click 'Apply' or 'OK' to save your changes.

Your custom error pages are now set up and ready to serve!


Custom error pages add a personal touch to your ASP.NET website and can greatly improve your visitor's experience. Setting up these pages is straightforward, even on a shared Windows hosting service using Plesk Panel. If you need more help or have questions, please get in touch with our support team. Happy hosting!

Was this answer helpful?

« Back