Error when trying to create a instance of a class on the network - DOTNET

This is a discussion on Error when trying to create a instance of a class on the network - DOTNET ; Short story is this. I have a class that sits on a network share, and a local windows form that references the class on the network. Both the form and class are signed with the same SKN. I have added ...

+ Reply to Thread
Results 1 to 3 of 3

Error when trying to create a instance of a class on the network

  1. Default Error when trying to create a instance of a class on the network

    Short story is this. I have a class that sits on a network share, and
    a local windows form that references the class on the network. Both
    the form and class are signed with the same SKN. I have added the SKN
    to the .net framework and giving it full trust permissions. But when I
    try to create a instance of the class, I get a error "Exception has
    been thrown by the target of an invocation" with a inner exception of
    "That assembly does not allow partially trusted callers." I even get
    this error when running in debug. I just got a new PC that is windows
    7 64bit, my previous machine was a windows XP 32bit and had no issues.
    I have tried cleaning the solution, recompiling both the form and
    class. Running VS as admin and nothing seems to work. Anyone have any
    ideas?

    Regards

  2. Default Re: Error when trying to create a instance of a class on the network

    More info. The application seems to work if I use the OneClick
    manafest and install it on my pc and say its a full trust.


  3. Default Re: Error when trying to create a instance of a class on the network

    Even more info: The application also works if I copy the exe out to
    the same network directory as the referenced dll. So it looks like the
    local exe isnt getting full trust even though its on the local
    machine.


+ Reply to Thread