Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > not allowed to access the registry of windows vista

Reply
Thread Tools

not allowed to access the registry of windows vista

 
 
=?Utf-8?B?QW5qYW5h?=
Guest
Posts: n/a
 
      02-19-2007

Hello

we creating a web application in ASP .net 2.0. we are trying to read font
file path from registry as below

Microsoft.Win32.RegistryKey registryKeyParen
registryKeyChild = registryKeyParent.OpenSubKey(subKey);

it's running in windows xp. but when we try to run this application in
windows vista
it's throwing an error. reason is that as a restricted user, the application
is not allowed to access the registry.

is there any way that the application can allowed to the restricted user to
access the registry of window vista in .net 2.0.

Thanks
Anjana


 
Reply With Quote
 
 
 
 
Alexey Smirnov
Guest
Posts: n/a
 
      02-19-2007
On Feb 19, 10:49 am, Anjana <Anj...@discussions.microsoft.com> wrote:
> Hello
>
> we creating a web application in ASP .net 2.0. we are trying to read font
> file path from registry as below
>
> Microsoft.Win32.RegistryKey registryKeyParen
> registryKeyChild = registryKeyParent.OpenSubKey(subKey);
>
> it's running in windows xp. but when we try to run this application in
> windows vista
> it's throwing an error. reason is that as a restricted user, the application
> is not allowed to access the registry.
>
> is there any way that the application can allowed to the restricted user to
> access the registry of window vista in .net 2.0.
>
> Thanks
> Anjana


Did you checked the Trust Level?
http://msdn2.microsoft.com/en-us/library/ms998326.aspx

Maybe Vista has it different by default

 
Reply With Quote
 
 
 
 
Mark Rae
Guest
Posts: n/a
 
      02-19-2007
"Anjana" <> wrote in message
news:F036E537-750B-4ED5-BC7D-...

> we creating a web application in ASP .net 2.0. we are trying to read font
> file path from registry as below
>
> Microsoft.Win32.RegistryKey registryKeyParen
> registryKeyChild = registryKeyParent.OpenSubKey(subKey);
>
> it's running in windows xp. but when we try to run this application in
> windows vista
> it's throwing an error. reason is that as a restricted user, the
> application
> is not allowed to access the registry.


Yes, that would be correct.

> is there any way that the application can allowed to the restricted user
> to
> access the registry of window vista in .net 2.0.


I was at a Vista Security for Developers seminar hosted by Microsoft a
couple of months ago, and they mentioned that they have deliberately made it
very difficult for apps to access the HKEY_LOCAL_MACHINE hive - if you're
trying to do that, then you will need to elevate the privileges of the
current user...


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
System.Security.SecurityException: Requested registry access is not allowed. Ray5531 ASP .Net 2 05-19-2005 04:49 PM
Requested registry access is not allowed. =?Utf-8?B?Sm9zaCBGbGFuYWdhbg==?= ASP .Net 11 11-05-2004 01:43 AM
SecurityException: Requested registry access is not allowed Kovan A. ASP .Net 0 05-31-2004 02:20 PM
Reading registry key throws "Requested registry access is not allowed." HK ASP .Net 1 04-01-2004 04:44 PM
Requested registry access is not allowed Gary ASP .Net 2 01-17-2004 07:34 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57