Reading a registry key

Reading a registry key

am 07.04.2008 16:09:47 von Robert Faulkner

Hello,

I'm trying for days now to get the aspnet-account the permission to read in the registry. I granted the right with the registry editor (Regedit) but still I don't get the value of the key.

I also tried to request the permission during runtime - but I really don't get it. I don't understand how to do so. Could someone please help me out with some code?

Thanks,
SanDee

From http://www.developmentnow.com/g/8_0_0_0_0_0/dotnet-framework -aspnet.htm

Posted via DevelopmentNow.com Groups
http://www.developmentnow.com

Re: Reading a registry key

am 07.04.2008 18:23:13 von David Wier

I would be horrified if I thought that a web page I accessed could access my
registry
Why would you need (or want) such a feature?

David Wier
http://aspnet101.com
http://iWritePro.com - One click PDF, convert .doc/.rtf/.txt to HTML with no
bloated markup


"SanDee" wrote in message
news:b619fd57-32df-4759-aee1-3629f4daad96@developmentnow.com ...
> Hello,
>
> I'm trying for days now to get the aspnet-account the permission to read
> in the registry. I granted the right with the registry editor (Regedit)
> but still I don't get the value of the key.
>
> I also tried to request the permission during runtime - but I really don't
> get it. I don't understand how to do so. Could someone please help me out
> with some code?
>
> Thanks,
> SanDee
>
> From
> http://www.developmentnow.com/g/8_0_0_0_0_0/dotnet-framework -aspnet.htm
>
> Posted via DevelopmentNow.com Groups
> http://www.developmentnow.com

Re: Reading a registry key

am 07.04.2008 19:09:22 von George Ter-Saakov

Most likely the guy want to read registry on a server....
I think to read registry in IIS hosted environment you need to elevate trust
level

Look here
http://msdn2.microsoft.com/en-us/library/aa302425.aspx#c0961 8429_006


George.


"David Wier" wrote in message
news:eNpNtuMmIHA.4536@TK2MSFTNGP06.phx.gbl...
>I would be horrified if I thought that a web page I accessed could access
>my registry
> Why would you need (or want) such a feature?
>
> David Wier
> http://aspnet101.com
> http://iWritePro.com - One click PDF, convert .doc/.rtf/.txt to HTML with
> no bloated markup
>
>
> "SanDee" wrote in message
> news:b619fd57-32df-4759-aee1-3629f4daad96@developmentnow.com ...
>> Hello,
>>
>> I'm trying for days now to get the aspnet-account the permission to read
>> in the registry. I granted the right with the registry editor (Regedit)
>> but still I don't get the value of the key.
>>
>> I also tried to request the permission during runtime - but I really
>> don't get it. I don't understand how to do so. Could someone please help
>> me out with some code?
>>
>> Thanks,
>> SanDee
>>
>> From
>> http://www.developmentnow.com/g/8_0_0_0_0_0/dotnet-framework -aspnet.htm
>>
>> Posted via DevelopmentNow.com Groups
>> http://www.developmentnow.com
>
>