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




my site run in asp.net but when i upload my site than it will give above error please help me
Posted
Updated 4-Oct-13 2:49am
v2

1 solution

In the web.config, under system.web section change the code to like below. Which will help you in seeing the actual error. In case if you have REmote Desktop Access to the server where you are publishing then try running the site from there where you will be able to see the actual error.

<customErrors mode="Off" />
 
Share this answer
 
Comments
Bama Boy 4-Oct-13 9:01am    
ohk thanx
Bama Boy 5-Oct-13 0:34am    
<customerrors mode="Off"> is also in comment but not work and i also remove comment but not work and also change property but not work
Madhu Nair 7-Oct-13 1:29am    
Are you having any problem?

I didn't understand your query
Bama Boy 10-Oct-13 5:12am    
mam my problem solved

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