Link to home
Start Free TrialLog in
Avatar of dba123
dba123

asked on

This <customErrors> tag should then have its "mode" attribute set to "Off".

I am not sure how to get past this error I'm getting after copying a website from my windows XP machine to our new dev server and then trying to run it's default.aspx page:
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>

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="RemoteOnly" defaultRedirect="mycustompage.htm"/>
    </system.web>
</configuration>
 

For the CustomErrors section in this app, we currently have:
----------------------------------------------------------------------

<customErrors mode="RemoteOnly">
      <error statusCode="404" redirect="~/temp/readme.txt" />
</customErrors>

we were all running this locally on XP Pro before we got this dev server now.  We need to be able to keep the CustomErrors section as is I would assume so that it redirects them to our readme.txt once we go to production with this.
ASKER CERTIFIED SOLUTION
Avatar of nauman_ahmed
nauman_ahmed
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of DBAduck - Ben Miller
If you want to get the error, then you will need to set it to mode="Off" while testing, and then set it back to RemoteOnly when you go into production.

The only other way, is to be logged into the dev server and run it from there using Localhost, and it will show you the error, but outside users will not see the error.

Ben.
My guess is that you don't have the folder set as an application, double check that.