My object/class/whatever

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

    #1

    My object/class/whatever

    I recently converted a VB6 program to VS 2005 that had a call to some
    Shell32 APIs to manipulate/test some registry keys. Using
    My.Computer.Reg istry, I was able to make the program much simpler. The one
    problem is that I want this to be a program that I can run from a network
    shared drive on any machine to test that individual machine's registry
    settings and once I compile the program and try to run it from the network
    share, it gets an error: "Request for the permission of type:
    'System.Securit y.Permissions.R egistryPermissi ons, mscorlib, Version=2.0.0.0 ,
    culture=Neutral , PublicKeyToken= ...' failed." Anyone have any ideas on how
    to fix this?

    TIA!

    --
    TFWBWY...A


  • Mattias Sjögren

    #2
    Re: My object/class/whatever

    Bryan,
    [color=blue]
    >Anyone have any ideas on how to fix this?[/color]

    Modify yor machine (or enterprise) security policy to give the
    required permissions to code executing from that network share. You
    can do it with Caspol.exe or the .NET Framework 2.0 Configuration
    administrative tool.


    Mattias

    --
    Mattias Sjögren [C# MVP] mattias @ mvps.org
    http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
    Please reply only to the newsgroup.

    Comment

    • Bryan Dickerson

      #3
      Re: My object/class/whatever

      What specific permissions need to be granted? Or should it be evident once I
      get into those tools?

      "Mattias Sjögren" <mattias.dont.w ant.spam@mvps.o rg> wrote in message
      news:OPg7sVchGH A.2340@TK2MSFTN GP03.phx.gbl...[color=blue]
      > Bryan,
      >[color=green]
      >>Anyone have any ideas on how to fix this?[/color]
      >
      > Modify yor machine (or enterprise) security policy to give the
      > required permissions to code executing from that network share. You
      > can do it with Caspol.exe or the .NET Framework 2.0 Configuration
      > administrative tool.
      >
      >
      > Mattias
      >
      > --
      > Mattias Sjögren [C# MVP] mattias @ mvps.org
      > http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
      > Please reply only to the newsgroup.[/color]


      Comment

      Working...