I have a application running on my IIS. After about 20 minutes the worker process is automatically ended if it stay's idle.
After that happens I get the message
System.Security.SecurityException: That assembly does not allow partially trusted callers.
When this happens I have to restart the web site to get it working again.
How can I get the worker process up and running automatically?