Click here to Skip to main content
12,631,365 members (31,526 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: ASP.NET
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>

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 22:45pm
Updated 7-Feb-13 0:27am
v2
Comments
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

<configuration>
<system.web>
<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
 
good
Please Sign up or sign in to vote.

Solution 1

Hi,

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.
  Permalink  
Comments
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
 
good
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" />
    </customErrors>
    -->

make comment on it
  Permalink  
Comments
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 | Mobile
Web02 | 2.8.161205.3 | Last Updated 7 Feb 2013
Copyright © CodeProject, 1999-2016
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