Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. AllowPartiallyTrustedCallers not working on Shared Assembly

AllowPartiallyTrustedCallers not working on Shared Assembly

Scheduled Pinned Locked Moved .NET (Core and Framework)
visual-studiosysadminsecurityhelpquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    Tristan Rhodes
    wrote on last edited by
    #1

    Hi Guys, I have created an assembly containing Tasks for use with MSBuild. In order to get the build working across all development machines, i have placed it on a shared directory. The assmebly works fine locally, but when i try to call it from the network drive, it failes with: System.Security.SecurityException: That assembly does not allow partially trusted callers. I have added the following line to the assmebly info: [assembly: AllowPartiallyTrustedCallers()] I have also signed the assembly with a strong key. The issue still persists. Any thoughts? Regards Tristan Rhodes

    ------------------------------- Carrier Bags - 21st Century Tumbleweed.

    D 1 Reply Last reply
    0
    • T Tristan Rhodes

      Hi Guys, I have created an assembly containing Tasks for use with MSBuild. In order to get the build working across all development machines, i have placed it on a shared directory. The assmebly works fine locally, but when i try to call it from the network drive, it failes with: System.Security.SecurityException: That assembly does not allow partially trusted callers. I have added the following line to the assmebly info: [assembly: AllowPartiallyTrustedCallers()] I have also signed the assembly with a strong key. The issue still persists. Any thoughts? Regards Tristan Rhodes

      ------------------------------- Carrier Bags - 21st Century Tumbleweed.

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      The workstations themselves haven't been told to trust the network location or trust assemblies signed with a certain key.

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007, 2008
      But no longer in 2009...

      T 1 Reply Last reply
      0
      • D Dave Kreskowiak

        The workstations themselves haven't been told to trust the network location or trust assemblies signed with a certain key.

        A guide to posting questions on CodeProject[^]
        Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
             2006, 2007, 2008
        But no longer in 2009...

        T Offline
        T Offline
        Tristan Rhodes
        wrote on last edited by
        #3

        Ah, i see! Thank you :)

        ------------------------------- Carrier Bags - 21st Century Tumbleweed.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups