By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,837 Members | 1,206 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,837 IT Pros & Developers. It's quick & easy.

System.typeinitializationexception

P: n/a
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
Jul 19 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Ethan <ec******@svpower.com> wrote:
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.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet/
If replying to the group, please do not mail me too
Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.