How to start a worker process in IIS

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?

Best regards
Who is Participating?
tolvudeild-VSAuthor Commented:
I have found the cause for this problem.
In the IIS manager you select the site and go to Advanced Settings and in Physical Path Credentials you must specify a user that has the rights to do what is needed, in this case I had put a user that did not have these rights. So I changed it to administrator and now everthing works fine.

Worker process should come back up when it is requested..
I found this bug perhaps it is applied to you aswell?

tolvudeild-VSAuthor Commented:
We had .net framework 3.5 sp1 installed and we installed now version 4 but no change.
I really don't know if the problem is that the worker prosess doesn't start automatically or not. I just know that the web service gives me this error after the worker process ends.

We are runnig this on Window server 2008 standard sp2

This is the first time we are runnig web applications and this might be a configuration problem.
tolvudeild-VSAuthor Commented:
When the worker process ends and the application stops working I restart the site and then it works until the process is ended if idle for 20 minutes.
Does anyone have any idea how to fix this?
tolvudeild-VSAuthor Commented:
As this is the only right answer to this problem.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.