win2008 r2 IIS7.5 - setting up a custom user for an application pool, and trust issues

Posted by Ken Egozi on Server Fault See other posts from Server Fault or by Ken Egozi
Published on 2010-05-10T07:39:21Z Indexed on 2010/05/10 7:44 UTC
Read the original article Hit count: 552

Scenario:

  1. blank win2008 r2 install
  2. the goal was to have a couple of sites running with isolated pool and dedicated users
  3. A new folder for a new website - c:\web\siteA\wwwroot, with the app (asp.net) deployed there in the /bin folder
  4. created a user named "appuser" and added it to the IIS_USERS group
  5. gave the website folder read and execute permissions for IIS_USERS and the appuser
  6. created the IIS site. set the app=pool identity to the appuser
  7. now I'm getting YSOD telling me that the trust-level is too low - SecurityException: That assembly does not allow partially trusted callers
  8. Added <trust level="Full" /> on the web-config, did not help
  9. changing the app-pool user to Administrator makes the site run
  10. Setting "anonymous user identity" to either IUSR or the app pool identity makes no difference

any idea?

is there a "step by step" howto guide for setting up users for isolated app pools on IIS7.5?

© Server Fault or respective owner

Related posts about iis7.5

Related posts about application-pools