Click here to Skip to main content
15,895,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello experts,

I have a webapplication, which is published on the server.
When submitting a form in the web application, some times, it doesn't show any issues and sometimes it has following error traced in event viewer.
Unhandled exception caught 
Event code 4010 

When I searched in goole for similar issues, This caught my eye.
C#
check to reload cache 


How to make sure to reload the cache before clicked on Submit button on the Form if the user sits ideal for a long time?

Could someone please tell me how to reload the cache?

What I have tried:

I just enabled the trace in web.config which is also another solution given in SO. I haven't had any idea to try on reloading the cache.
Posted

1 solution

Reloading the cache is has nothing to do with this exception. This exception is a security exception. Your server code tried to do something it did not have permissions to do.

Instead of enabling tracing, turn off CustomErrors in web.config instead. When the ASP.NET code crashes it will display an error page with the details.
<system.web>
    <customerrors mode="Off" />
  ...
  </system.web>

Without further information, it's impossible to tell you how to fix this.
 
Share this answer
 
Comments
sudevsu 17-Feb-16 15:00pm    
I have all the error traced in event viewer. But the error message didn't really show where it came from in the message. So I was wondering if that is with some cache issues

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