I installed a .Net 3.5 application onto a Windows 2008 Web R2 (64 bit) What makes this a little unique is that the ASP.Net code is stored on a UNC file share. Because of this issue, I received the following error:
Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application’s trust level in the configuration file.
While searching I came across the caspol solution from Microsoft:
C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\caspol.exe -m -ag 1 -url “file:////\\fs\share\*” FullTrust -exclusive on
After restarting IIS, all sorted.