Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > .NET General

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

Reply
 
Old 05-18-2009   #1 (permalink)
Purzel


 
 

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

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

My System SpecsSystem Spec
Old 05-19-2009   #2 (permalink)
Wilson, Phil


 
 

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

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.
--
Phil Wilson

"Purzel" <Purzel@xxxxxx> wrote in message
news:41E2BEAB-33BC-4266-AC28-2E73ECB29359@xxxxxx
Quote:

> 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
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
error code 39 on all device type: "Modems" & "Ports (COM & LPT)" Vista hardware & devices
Exception calling "CreateInstance" with "2" argument(s): for Microsoft.Update.UpdateColl PowerShell
Exception calling "Send" with "1" argument(s) error using PING PowerShell
"File and Printer sharing" firewall exception scope in Vista ? Vista networking & sharing
get-wmiobject -credential threw an exception PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46