Re: Request for permission of the type 'System.Security.Permissions.RegistryPermission...' failed
- From: "Bryan Dickerson" <txprphan@xxxxxxxxxxxx>
- Date: Mon, 24 Apr 2006 15:41:10 -0500
Thanks for your response. So would I have to setup the security on every
machine that runs it? At least for the first time it's invoked?
"Phill W." <p-.-a-.-w-a-r-d@xxxxxxxxxxxxxxxxxxx> wrote in message
news:e251kl$t34$1@xxxxxxxxxxxxxxxxxxxx
Look into Code Access Security Policies (CASPOL).
You can set up areas of your network from which you "trust" .Net code as
though it were on your local machine and, therefore, with all the
permissions you require.
IIRC, VS2005 has some Whizzo tools for working out exactly what
permissions your application(s) require but, where I am, just picking a
known network location and granting "Full Trust" to it works quite nicely.
HTH,
Phill W.
Bryan Dickerson wrote:
So, do I just need to go back to using the Windows Shell API to read the
registry (seems a pity)? Or how do I attain "full-trusted mode" from a
Network share?
"VJ" <vijaybalki@xxxxxxxxx> wrote in message
news:O4MuwBwYGHA.3972@xxxxxxxxxxxxxxxxxxxxxxx
You can't do that.. When a assembly runs of the network, its not in
full-trusted mode, like running locally. Also, you don't have registry
access when running from a limited user XP Account.
Vijay
"Bryan Dickerson" <txprphan@xxxxxxxxxxxx> wrote in message
news:%234f$r3vYGHA.3516@xxxxxxxxxxxxxxxxxxxxxxx
I forgot to add that I'm using VS 2005, but perhaps that's evident from
the "My." object. Does anyone have any ideas??
.
- Follow-Ups:
- References:
- Request for permission of the type 'System.Security.Permissions.RegistryPermission...' failed
- From: Bryan Dickerson
- Re: Request for permission of the type 'System.Security.Permissions.RegistryPermission...' failed
- From: Bryan Dickerson
- Re: Request for permission of the type 'System.Security.Permissions.RegistryPermission...' failed
- From: VJ
- Re: Request for permission of the type 'System.Security.Permissions.RegistryPermission...' failed
- From: Bryan Dickerson
- Re: Request for permission of the type 'System.Security.Permissions.RegistryPermission...' failed
- From: Phill W.
- Request for permission of the type 'System.Security.Permissions.RegistryPermission...' failed
- Prev by Date: Re: Passing information form C app to VB
- Next by Date: Shared dll paths
- Previous by thread: Re: Request for permission of the type 'System.Security.Permissions.RegistryPermission...' failed
- Next by thread: Re: Request for permission of the type 'System.Security.Permissions.RegistryPermission...' failed
- Index(es):
Relevant Pages
|