Permissions for the application pool account

May 26, 2010 at 9:23 AM


What permissions do we need to grant the account that is running the application pool for the deployment web service?

Get the following error when the account is not in local admin on the server and running the GetADSiteByIPAddress:

"System.Security.SecurityException: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
   at MaikKoster.Deployment.WebService.AD..ctor()"

It works fine if we make the user local admin.




May 26, 2010 at 9:50 AM

Hi Martin,

try to change your application pool setting "Load User Profile" to true.



May 26, 2010 at 11:08 AM

Thanks, now it works.

Jun 3, 2010 at 9:00 PM

I was having the same problem on Win2008 R2 and that fixed for me too.  Thank Maik!