title: "An unhandled security exception has occurred" in asp.net
body: <p>We are getting the following error on our web server. We are also observing a strange problem leading to a virtual shuttpown to our asp.net web application. It does not crash. It simply stops processing requests. this happen regardless of the load of the server. It happens periodically, sometime every 90 minutes or 2 hours. Sometime also when no one is logged on.</p>
  
  <p>We are caching certain data in memory to minimize database round trips . Could this happen when the cache expires and need to be reloaded due to something not configured properly?</p>
  
  <pre>
  Event code: 4010 
  Event message: An unhandled security exception has occurred. 
  Event time: 21/05/2014 08:57:36 
  Event time (UTC): 21/05/2014 06:57:36 
  Event ID: 9106022293a944059cd7a35dbdc48024 
  Event sequence: 262 
  Event occurrence: 1 
  Event detail code: 0 
  
  Application information: 
      Application domain: /LM/W3SVC/3/ROOT-1-130451258156698671 
      Trust level: Full 
      Application Virtual Path: / 
      Application Path: D:\FolderXXX\ 
      Machine name: MachineXXXX 
  
  Process information: 
      Process ID: 6664 
      Process name: w3wp.exe 
      Account name: UserXXX 
  
  Request information: 
      Request URL:  
      Request path:  
      User host address:  
      User:  
      Is authenticated: False 
      Authentication Type:  
      Thread account name: UserXXX 
  </pre>
  
  <p>Custom event details: </p>