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