Problem:
Project is on a shared network drive. When run, gets runtime error:
System.TypeInitializationException was unhandled
Resolution:
Need to change the Permission Set for LocalIntranet_Zone code group:
Open the .NET Framework Config Wizard:
Control Panel > Admin Tools > Microsoft .NET Framework 2.0 Configuration
On the Configuration Wizard, go to:
My Computer > Runtime Security Policy > Machine > Code Groups > All_Code > LocalIntranet_Zone
Right click on LocalIntranet_Zone and go to Properties
On the Permission Set tab click the dropdown box and select FullTrust
Click OK