.NET Permissions

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

    #1

    .NET Permissions


    Hi!

    I have an application composed of two executables and two dlls.
    Both exe project are configured as full trust.
    On the development machine all works fine.

    When I test them on another machine either copying the bin folders or
    using the "publish" feature in VB.NET Express they don't run.

    I get several execptions like this:

    "That assembly does not allow partially trusted callers." (why? I set my
    projects as *full* trust).

    "To grant this application the required permission [...] use the
    Microsoft .NET Framework Configuration tool." (how? MS does not include
    the mscorcfg.msc into the Framework 2.0...)

    Could you help me, please?
    Tell me if you need more details.

    Marco / iw2nzm

  • Newbie Coder

    #2
    Re: .NET Permissions

    Look into Global Assembly Cache (GAC) for your assemblies. Once added they
    should be fine

    --
    Newbie Coder
    (It's just a name)


    "Marco Trapanese" <marcotrapanese NOSPAM@libero.i twrote in message
    news:P3VNh.3514 2$J11.753427@tw ister1.libero.i t...
    >
    Hi!
    >
    I have an application composed of two executables and two dlls.
    Both exe project are configured as full trust.
    On the development machine all works fine.
    >
    When I test them on another machine either copying the bin folders or
    using the "publish" feature in VB.NET Express they don't run.
    >
    I get several execptions like this:
    >
    "That assembly does not allow partially trusted callers." (why? I set my
    projects as *full* trust).
    >
    "To grant this application the required permission [...] use the
    Microsoft .NET Framework Configuration tool." (how? MS does not include
    the mscorcfg.msc into the Framework 2.0...)
    >
    Could you help me, please?
    Tell me if you need more details.
    >
    Marco / iw2nzm
    >

    Comment

    • Marco Trapanese

      #3
      Re: .NET Permissions

      Newbie Coder wrote:
      Look into Global Assembly Cache (GAC) for your assemblies. Once added they
      should be fine

      Uh...
      I read tons of articles about GAC, but I'm still a *bit* confused.

      Examples:

      My application (written in Visual Basic .NET Express) is composed of one
      executable and two dlls. One of the two is mine.
      I compile the solution and it works as expected on the development
      machine. Well, now I want to distribute it.

      What should I do?


      Thanks again
      Marco / iw2nzm

      Comment

      Working...