Error: System.Security.Policy.PolicyException: Required permissions cannot be acquired.
This error can be caused by one of the following:
- Security permissions.
- IIS AppPool Settings, for example enable 32bit mode or load user profile may need to be set to true.