Click here to Skip to main content
15,888,454 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi i am new user of asp.net i have got problem like this

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


plz provide solution as soon as possible
thanks & Regards
Posted

1 solution

The message is pretty clear. Your application has caused an error and is trying to display an error message. But your web.config settings are preventing that from happening. You need to change the value of customErrors to Off to see the error.

Read up about customErrors to understand your error message.

And please refrain from adding urgency to your questions. We're all busy and have our own work to be getting on with.
 
Share this answer
 
Comments
UDTWS 4-Nov-14 2:21am    
Thanks for reply
as you given solution i real a lot but i did not get answer so plz tell me that on my local host work properly but when i upload i got this error message and debug or do a lot will you explain what is the problem
Thanks & REgards
Dominic Burford 4-Nov-14 3:29am    
Open your web.config and look for your customErrors section. It needs to look like this.

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

This will allow you to see the error message that is being generated. Your current setting is preventing you from viewing the error.

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