Advertisements

On Feb 19, 10:49 am, Anjana <> 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

Advertisements

"Anjana" <> wrote in message
news:...
> 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...

Share This Page

Welcome to The Coding Forums!

Welcome to the Coding Forums, the place to chat about anything related to programming and coding languages.

Please join our friendly community by clicking the button below - it only takes a few seconds and is totally free. You'll be able to ask questions about coding or chat with the community and help others.
Sign up now!