Re: Permissions
From: Ralph (nt_consulting32_at_hotmail.com)
Date: 02/17/04
- Next message: Tap: "Re: System.Text.RegEx"
- Previous message: Jon Skeet [C# MVP]: "Re: Error trying to execute reflection "invoke" method"
- In reply to: Sean McKaharay: "Re: Permissions"
- Messages sorted by: [ date ] [ thread ]
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
- Next message: Tap: "Re: System.Text.RegEx"
- Previous message: Jon Skeet [C# MVP]: "Re: Error trying to execute reflection "invoke" method"
- In reply to: Sean McKaharay: "Re: Permissions"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|