Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_beginners thread: Server Error Application


Message #1 by "Lah (Kanyarat Namprempree)" <Kanyarat.Namprempree@w...> on Mon, 18 Nov 2002 10:23:49 +1100
I have just started with asp.net and I received this error message

Server Error in '/' Application.

Runtime Error
Description: An application error occurred on the server. The current
custom error settings for this application prevent the details of the
application error from being viewed remotely (for security reasons). It
could, however, be viewed by browsers running on the local server
machine.

Details: To enable the details of this specific error message to be
viewable on remote machines, please create a <customErrors> tag within a
"web.config" configuration file located in the root directory of the
current web application. This <customErrors> tag should then have its
"mode" attribute set to "Off".


<!-- Web.Config Configuration File -->

<configuration>
    <system.web>
        <customErrors mode=3D"Off"/>
    </system.web>
</configuration>=09

Notes: The current error page you are seeing can be replaced by a custom
error page by modifying the "defaultRedirect" attribute of the
application's <customErrors> configuration tag to point to a custom
error page URL.


<!-- Web.Config Configuration File -->

<configuration>
    <system.web>
        <customErrors mode=3D"RemoteOnly"
defaultRedirect=3D"mycustompage.htm"/>
    </system.web>
</configuration>=09

Please help me in where and what I need to config.

Thanks in advance.

Kanyarat Namprempree (Lah)
Group Developer
WOODS BAGOT
Level 4, 146 Arthur Street
North Sydney NSW 2060
Tel: (02) 9900 2579
Fax: (02) 9929 5749
Email: kanyarat.namprempree@w...



Limits of Liability and Disclaimer - Woods Bagot is not liable for any loss
, damages, claims, cost demand and expense whatsoever and howsoever arising
 in connection with or out of the use of data and/or programs supplied in t
his e-mail transmission.  The receivers of this transmission shall ascertai
n the accuracy and suitability of this data for their purposes.  Although c
omputer virus scanning software is used by Woods Bagot, the receivers of th
is transmission shall be responsible for their own virus protection and Woo
ds Bagot shall not be held liable for any subsequent loss, damage, cost or 
expense.

Message #2 by "Ken Schaefer" <ken@a...> on Mon, 18 Nov 2002 12:56:35 +1100
The way ASP.Net works by default is that error messages are displayed if the
page is viewed on the local machine, but not if the page is viewed from a
remote machine. You can override this behaviour by making a change to your
web.config file.

If you do not have a web.config file on your site, then place the following
into a file called web.config and upload it to the root of your website:

<?xml version="1.0" encoding="UTF-8" ?>

<configuration>

    <system.web>

        <!--

            The <customErrors> section enables configuration of what to do
if/when an
            unhandled error occurs during the execution of a request.
Specifically, it
            enables developers to configure html error pages to be displayed
in place of
            a error stack trace:

            <customErrors mode="RemoteOnly"
defaultRedirect="GenericErrorPage.htm">
               <error statusCode="403" redirect="NoAccess.htm"/>
               <error statusCode="404" redirect="FileNotFound.htm"/>
            <customErrors>

        -->

            <customErrors mode="Off"/>

    </system.web>

</configuration>

Cheers
Ken

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
From: "Lah (Kanyarat Namprempree)" <Kanyarat.Namprempree@w...>
Subject: [aspx_beginners] Server Error Application


I have just started with asp.net and I received this error message

Server Error in '/' Application.

Runtime Error
Description: An application error occurred on the server. The current
custom error settings for this application prevent the details of the
application error from being viewed remotely (for security reasons). It
could, however, be viewed by browsers running on the local server
machine.

Details: To enable the details of this specific error message to be
viewable on remote machines, please create a <customErrors> tag within a
"web.config" configuration file located in the root directory of the
current web application. This <customErrors> tag should then have its
"mode" attribute set to "Off".


<!-- Web.Config Configuration File -->

<configuration>
    <system.web>
        <customErrors mode="Off"/>
    </system.web>
</configuration>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


  Return to Index