errorCodex - Computer Questions & Solutions Forum


  errorCodex - Computer Questions & Solutions Forum » Blue Screen » Basic How-tos

Basic How-tos Help Us Noobs by Sharing Your Wisdom

Reply
 
Thread Tools
  #1  
Old 23 June 2010, 22:21
Miraenda's Avatar
Miraenda Miraenda is offline
Mime Stalker
 
Join Date: Nov 2009
Location: Coralville Iowa
Age: 37
Posts: 75
Miraenda has disabled reputation
Default Browser Error Handling for mod_mono (cPanel) and .aspx pages (Enkompass)

In order to have aspx pages show their errors in a browser, you would need to add a web.config file to the application location (so /home/username/public_html/web.config file if the aspx page is in that location for mod_mono), then add the following content to that file:

mod_mono web.config
Code:
<!-- Web.Config Configuration File -->

<configuration>
    <system.web>

        <customErrors mode="Off" />
    </system.web>
</configuration>
For Enkompass, the path will normally be C:\Users\cPanel\deathcal\public_html where C:\ is the drive location for the user.

Enkompass web.config


Code:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <handlers accessPolicy="Read, Execute, Script" />
            <defaultDocument>
                <files>
                    <clear />
                    <add value="index.aspx" />
                </files>
            </defaultDocument>
    </system.webServer>
    <system.web>
        <customErrors mode="Off" />
    </system.web>
</configuration>
This shuts off custom errors and then outputs them into the browser to view for the failing page. For the Enkompass configuration, I also have it showing the defaultDocument (DirectoryIndex) as index.aspx for the site to set the main page.

Of note, if you have a failing aspx page for mod_mono, all pages on the site (even working test pages) will fail under mod_mono. So ensure to move the failing aspx page outside of the folder if you need other aspx pages on the site to function.
__________________
Miraenda
~ Ex uno disce omnes ~
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 15:07.


A vBSkinworks Design
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.