How to start a worker process in IIS

Posted on 2011-10-12
Last Modified: 2012-05-12
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
Question by:tolvudeild-VS
    LVL 3

    Expert Comment

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


    Author Comment

    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.

    Author Comment

    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?

    Accepted Solution

    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.


    Author Closing Comment

    As this is the only right answer to this problem.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    The question has been asked on multiple occasions as to how best to do printing in a remote desktop or terminal services environment.   It seems that this particular question has plagued several people and most especially as Terminal Services, as…
    Have you considered what group policies are backwards and forwards compatible? Windows Active Directory servers and clients use group policy templates to deploy sets of policies within your domain. But, there is a catch to deploying policies. The…
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    7 Experts available now in Live!

    Get 1:1 Help Now