Click here to Skip to main content
13,501,210 members
Rate this:
Please Sign up or sign in to vote.
See more:
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.

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 -->

        <customErrors mode="Off"/>

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 -->

        <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>

I have tried this but no use???

Changing customErrors tag to: <customErrors mode="On" />
Changing customErrors tag to: <customErrors mode="Off" />
Changing compilation tag to: <compilation debug="false" defaultLanguage="c#">
Posted 6-Feb-13 21:45pm
Updated 6-Feb-13 23:27pm
manognya kota 7-Feb-13 3:48am
Are you logging your errors to eventviewer? if so,did you check the event viewer to know what exactly was the error?
Member 9794156 7-Feb-13 4:00am
it was a custom error in web.config file

<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>

this the error coming i tried this but no use???

plzz help

thank u
Member 9794156 7-Feb-13 4:19am
nooo...that was a custom error in web.config file
CShubham 7-Feb-13 4:21am
so are you try to add custom error page or anything else
Member 9794156 7-Feb-13 4:25am
no custom error only

we tried in google also but no result can u please help i need to submit this project by tommorrow afternoon

thank u
Rate this: bad
Please Sign up or sign in to vote.

Solution 1


This error comes when some bugs are in your application and on the browser it ll not show you just becasue of you did't mention custom error tag in to your web.config file.

You have 3 options as i consider :

1. run your application on local,check the bug and then again host that.
2. make custom error tag off in web config file
3. check with the version of .net framework i.e on which you have developed the application and with which framework you are trying to host this applicaiton.

hope it ll help you.
Member 9794156 8-Feb-13 0:25am
it is running in local successfully with out errors,and i made custom error tag also,i reverified version also but no use!!!!

how to resolve it????
nehas1jan 8-Feb-13 0:29am
Hi,did you check the framework version??
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

hi !!!! make change in your code like this:

        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" />

make comment on it
Member 9794156 8-Feb-13 0:18am
ya i tried that also but same error is coming any other alternative
CShubham 8-Feb-13 1:23am
ya delete the config file and add new one

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web03 | 2.8.180417.1 | Last Updated 7 Feb 2013
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100