Re: Permissions

From: Ralph (nt_consulting32_at_hotmail.com)
Date: 02/17/04


Date: Tue, 17 Feb 2004 14:15:56 -0600


"Sean McKaharay" <sean.mckaharay@expoexchange.com> wrote in message
news:OIGsSzY9DHA.1816@TK2MSFTNGP12.phx.gbl...
> Does anyone else have any help
>
>
>
> "Sean McKaharay" <sean.mckaharay@expoexchange.com> wrote in message
> news:eMX4IzW9DHA.3012@TK2MSFTNGP09.phx.gbl...
> > I am wondering if anyone can help me out with this one. Here goes.......
I
> > have my local machine (Windows XP framework 1.1) and a Server (Windows
> 2003
> > framework 1.1). When I go to run my code on my box and late bind to a
dll
> on
> > the server machine I get an error. Below is the lines of code and the
> error
> > I get. I have no problem accessing the Reports.dll so it should not be a
> > security problem. I get the error when I try to run the class rptBadge.
I
> am
> > getting a RegistryPermission error. Here is some background on the
> > class..... I am extending from a class from a 3rd party. We have paid
for
> > the product and I am wondering if it has something to do with that. The
> > third party might have some information in the registry and I don't have
> > permissions to read the registry.
> >
> > Any help would be appreciated.
> >
> >
> >
> > System.Reflection.Assembly ControlAssembly =
> >
>
System.Reflection.Assembly.LoadFrom("\\Server1\Reports\output\Reports.dll");
> >
> > report =
> > (ExpoExchange.Registration.Common.Business.ProductionActiveReportBase)
> > ControlAssembly.CreateInstance("Reports.Production.rptBadge");
> >
> >
> >
> > THE ERROR:
> >
> > {"Request for the permission of type
> > System.Security.Permissions.RegistryPermission, mscorlib,
> > Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
> > failed." }
> >

The latter is pretty easy to check out (assuming you can find the correct
hive/key that is giving you trouble.) just open regedt32 (regedit - doesn't
provide for changing permissions) as an admin - find the key/path and reset
the permissions to everyone, or specific name, etc.

There are various Registry Monitoring programs available for sale,
shareware, free, etc on the web that might help in your search.

There is likely more to the problem, but this would be a quick check if it
is a simple matter of registry permission. I am passing a note of doubt
because frankly M$ has been monkeying around with security over the last
couple of 24 months or so and .NET uses a slightly different security model
that Windows itself uses. I still don't have a warm fuzzy as to
understanding all the specifics.

HTH
-ralph



Relevant Pages

  • Re: Granting write access to HKLM
    ... hive into a registry key under HKEY_USER, ... I want to change the permissions of a registry ... >> permissions for a specific principal, rather we initialize the security ... >> principals, see the MSDN docs, starting with SetSecurityDescriptorDacl ...
    (microsoft.public.vc.mfc)
  • Re: Active Directory domain policy not available - Windows cannot access the registry information (5
    ... shuffling the registry around as a result. ... >What share permissions did you change? ... >SYSVOL and NETLOGON shares aren't accessible. ... >the domain controller is changed but the DNS still points to the old IP ...
    (microsoft.public.backoffice.smallbiz2000)
  • Re: Certificate store access permissions
    ... - configuring every clients' CAS ... e.g. this "Run Once" registry key scanner: ... With default permissions given to ... the ActiveX throws a security error exception. ...
    (microsoft.public.dotnet.security)
  • Re: Registry ACL Modification
    ... You need to set up the permissions in the installation program, ... it doesn't "hack" around the security. ... > I wrote an app that needs to add a few small strings in the registry. ... > can download. ...
    (microsoft.public.vb.winapi)
  • Re: ISA 2004 - Disk activity after SP1 or 2 installation
    ... configurations into the registry. ... permissions to the key and the sub keys: ... This newsgroup only focuses on SBS technical issues. ... you may want to contact Microsoft CSS directly. ...
    (microsoft.public.windows.server.sbs)