System.typeinitializationexception

  • Thread starter Thread starter Ethan
  • Start date Start date
E

Ethan

I made a program that works fine as long as its on my
machine, but as soon as i move it to a network drive it
stops working. I'm still trying to run it on my machine
just from a network drive and it gives me
system.typeinitializationexception.

Anyone know what changes when i move it to a network drive
and try running it from there?

I have also tried running it on a machine with .net
framework installed on it and it gives me the same error.
Why doesn't it give me that while i'm developing
it/running it on my machine?

thank you to anyone that helps.

Ethan
 
Ethan said:
I made a program that works fine as long as its on my
machine, but as soon as i move it to a network drive it
stops working. I'm still trying to run it on my machine
just from a network drive and it gives me
system.typeinitializationexception.

And what's the message in the exception?
Anyone know what changes when i move it to a network drive
and try running it from there?

I have also tried running it on a machine with .net
framework installed on it and it gives me the same error.
Why doesn't it give me that while i'm developing
it/running it on my machine?

Hard to say without more details. If the message in the exception
doesn't help (it may well be a trust issue), please try to come up with
a short but complete example which demonstrates the problem. See
http://www.pobox.com/~skeet/csharp/complete.html for what I mean.
 
Back
Top