System.typeinitializationexception

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ethan

    #1

    System.typeinitializationexception

    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.typeinit ializationexcep tion.

    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
  • Jon Skeet

    #2
    Re: System.typeinit ializationexcep tion

    Ethan <ecoulter@svpow er.com> wrote:[color=blue]
    > 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.typeinit ializationexcep tion.[/color]

    And what's the message in the exception?
    [color=blue]
    > 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?[/color]

    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 - <skeet@pobox.co m>
    Pobox has been discontinued as a separate service, and all existing customers moved to the Fastmail platform.

    If replying to the group, please do not mail me too

    Comment

    Working...