Error "The type initializer for ... threw an exception"

  • Thread starter Thread starter Purzel
  • Start date Start date
P

Purzel

Hello,

I have developed an WindowsForm-application with .NET-Framework 2.0. There
are no problems when the application is running on my local drive.
But when I copy it to a network drive, I get the error "The type initializer
for ... threw an exception" (when starting the application).
By the way: the operating-system is WindowsXP professional SP2.

Thank you
 
You may have run into the network security code access issue - you can't run
..NET 2.0 managed code from a share unless the share is trusted (caspol.exe
etc).

Type initializer probably means a constructor.
 
You may have run into the network security code access issue - you can't run
..NET 2.0 managed code from a share unless the share is trusted (caspol.exe
etc).

Type initializer probably means a constructor.
 
Back
Top