Click here to Skip to main content
15,867,308 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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.

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".
XML
<!-- 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???


XML
Changing customErrors tag to: <customErrors mode="On" />
Changing customErrors tag to: <customErrors mode="Off" />
Changing compilation tag to: <compilation debug="false" defaultLanguage="c#">
Posted
Updated 6-Feb-13 23:27pm
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
[no name] 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

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.
 
Share this answer
 
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??
hi !!!! make change in your code like this:

XML
<!--
        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
 
Share this answer
 
Comments
Member 9794156 8-Feb-13 0:18am    
ya i tried that also but same error is coming any other alternative
[no name] 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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900