Click here to Skip to main content
15,915,019 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
XML
<!-- Web.Config Configuration File -->

<configuration>
    <system.web>
        <customErrors mode="Off"/>
    </system.web>
</configuration>
Posted
Comments
VishwaKL 11-Aug-14 5:51am    
Mostly the .net framework what you using in local machine the same version is not using in server check that, and install rt framework. and set <customerrors mode="Off"> in web config

1 solution

If this is the actual error message, it look like you need to set your custom errors mode to off in your Web.Config file (in the application folder). You will then receive your error message on the web page along with a stack trace. There's a fair chance it's a permissions problem. It might be a file or even a database permission (what user is configured on the web server and does it have access?) If your project is set to run in debug, you would also have to give write permission to the debug folder under the .Net Framework in your Windows folder hive (or turn off debugging!)

Don't forget to turn CustomErrors back on when you have corrected the issue as error traces can expose details about your solution that hackers might use
 
Share this answer
 
v2

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