• The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Resolved Send detailed error to client-side for 500 errors with ASP.NET

kelmore5

New Pleskian
Server operating system version
Windows Server 2019
Plesk version and microupdate number
18.0.68 Update #2
Hello,

I am trying to send detailed error information to the client-side when 500 errors occur on my Plesk managed site. Basically, whenever a 500 error occurs on my site, it displays the error message:

An error occurred on the server when processing the URL. Please contact the system administrator.

If you are the system administrator please click here to find out more about this error.

and I want that error message to show the "full detailed" error instead.

I've seen other threads discussing how to do this using previous versions of Plesk / Classic ASP, but not much on how to do it for newer versions with ASP.NET. Here are the settings I've changed to try to enable detailed errors:
  1. In ASP.NET settings, I set "Custom error mode" to "Off" (link)
  2. In Virtual Directory > Error Documents, I set each error type to "Default" (link)
  3. Editing the web.config file, I added the lines
    ASP.net:
    <customErrors mode="Off" />
    and
    ASP.net:
    <httpErrors errorMode="Detailed" />
    (link)
However, I'm still not getting the full detailed error message to show up on the client-side. I've also seen mentions of a "Send Errors to Browser" setting (link). I'm assuming that doesn't apply to my version (seems to be for ASP Classic) because I can't find that setting on my installation.

Is there anyway to enable this setting on newer versions of Plesk / ASP?

Thanks

Server: Windows Server 2019
Plesk Version: Plesk Obsidian Web Admin Edition 18.0.68 Update #2
ASP Version: 4.8.0
 
Okay, I figured this out. This was the correct link, but I was in the wrong location. I was originally looking for the error settings using Plesk's administrative web console. The setting is actually in the "IIS Manager" app on the Windows server. Attached are some screenshots.

Here's where I found it:
  1. Remote into the Windows server
  2. Open the "Internet Information Services (IIS) Manager" app from the start menu
  3. Go to the site where you need to update settings in the left hand menu
  4. Click on "ASP"
  5. Then you can set "Send Errors to Browser" to "True" under "Debugging Properties"
After that, you'll need to update each error page to send a full report as well like so:
  1. Still in "IIS Manager," click back into the site settings
  2. Go to "Error Pages"
  3. For each error you want to send to the client-side:
    1. Right click on the error page and hit "Edit Feature Settings..."
    2. Set the "Error Responses" option to "Detailed errors"
You can see the full rundown here as well.
 

Attachments

  • plesk_asp_settings_admin.png
    plesk_asp_settings_admin.png
    93.2 KB · Views: 1
  • plesk_asp_settings_server.png
    plesk_asp_settings_server.png
    66.7 KB · Views: 1
Back
Top