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

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
 
W

Wilson, Phil

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.
 
W

Wilson, Phil

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top