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. Visual Basic
  4. Code Access Security Policy Tool

Code Access Security Policy Tool

Scheduled Pinned Locked Moved Visual Basic
questioncsharpdotnetcomsecurity
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.
  • J Offline
    J Offline
    Jason Weibel
    wrote on last edited by
    #1

    I am trying to use the Code Access Security Policy Tool (Caspol.exe) to set my .net console app permissions. When the following is run from command line:caspol -machine -addfulltrust C:\Program Files\Utility.dll I get this error: Microsoft (R) .NET Framework CasPol 1.1.4322.573 Copyright (C) Microsoft Corporation 1998-2002. All rights reserved. ERROR: Unable to load assembly Usage: caspol ... caspol -af caspol -addfulltrust Add full trust assembly to policy level What needs to be done to resolve this error? Second question is there a better way of scripting the setting of trusted assemblies? Thanks, Jason W.

    D 2 Replies Last reply
    0
    • J Jason Weibel

      I am trying to use the Code Access Security Policy Tool (Caspol.exe) to set my .net console app permissions. When the following is run from command line:caspol -machine -addfulltrust C:\Program Files\Utility.dll I get this error: Microsoft (R) .NET Framework CasPol 1.1.4322.573 Copyright (C) Microsoft Corporation 1998-2002. All rights reserved. ERROR: Unable to load assembly Usage: caspol ... caspol -af caspol -addfulltrust Add full trust assembly to policy level What needs to be done to resolve this error? Second question is there a better way of scripting the setting of trusted assemblies? Thanks, Jason W.

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

      Why does that path you specified look like it's bad? RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

      1 Reply Last reply
      0
      • J Jason Weibel

        I am trying to use the Code Access Security Policy Tool (Caspol.exe) to set my .net console app permissions. When the following is run from command line:caspol -machine -addfulltrust C:\Program Files\Utility.dll I get this error: Microsoft (R) .NET Framework CasPol 1.1.4322.573 Copyright (C) Microsoft Corporation 1998-2002. All rights reserved. ERROR: Unable to load assembly Usage: caspol ... caspol -af caspol -addfulltrust Add full trust assembly to policy level What needs to be done to resolve this error? Second question is there a better way of scripting the setting of trusted assemblies? Thanks, Jason W.

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

        You might also want to put the full path to the assembly in quotes so it's not parsed up as two seperate arguments:

        caspol -machine -addfulltrust "C:\Program Files\Utility.dll"

        Are you sure this is the correct path? RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

        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