Are you getting a .NET Framework error? “Application attempted to perform an operation not allowed by the security policy. To grant this application the required permission, contact your system administrator, or use the Microsoft .NET Framework Configuration tool.”
The tutorial below will show you how to get the Microsoft .NET Framework Configuration tool working on Windows 7 and editing the security permissions to get rid of that error. I don’t always recommend this as a full solution, but for a quick fix or testing to see if your problem really is a security issue, this works great.
Microsoft .NET Security Policy
Head over to Microsoft’s website and download the .NET Framework 2.0 Software Development Kit. Without doing this you won’t see configuration under administrative tools.
Click through the installer, defaults are fine.
Launch Administrative Tools in the control panel.
Click on “Microsoft .NET Framework 2.0 Configuration.”
Drill down to My Computer > Runtime Security Policy > Machine > Code Groups > All_Code. Right click and go to properties.
Click on the “Permission Set” tab and change the permission set to “FullTrust.”