473,397 Members | 1,972 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

not allowed to access the registry of windows vista


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
Feb 19 '07 #1
2 2070
On Feb 19, 10:49 am, Anjana <Anj...@discussions.microsoft.comwrote:
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

Feb 19 '07 #2
"Anjana" <An****@discussions.microsoft.comwrote in message
news:F0**********************************@microsof t.com...
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...
Feb 19 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Brian Campbell | last post by:
Gretings... I have written a Windows Service that accesses a Web Service. Both run fine on my development machine.... After installing both the Windows Service and Web Service on my staging...
10
by: Clint | last post by:
Hey all - I'm having a really confusing problem concerning a web service. Right now, I have an application that needs to call a web service that does nothing but return "true" (this will...
4
by: LP | last post by:
Hi, My webservice is currently deployed on WIndows 2000 server and runs pretty fine. I am trying to run my webservice on a Windows 2003 server. My webservice tries to write to a eventlog. The...
6
by: Steve Teeples | last post by:
I have a piece of code (written is Visual Studio 2005) that is only reading the Security EventLog. On Windows XP Professiona/Home this code works just fine. int numberOfEntries =...
1
by: UK1967 | last post by:
I wrote a ASP.NET application (Windows 2003 Enterprise Server, IIS, .NET Framework 1.1). This application use the Windows (AD) account and impersonation. Some functions in this application contact,...
37
by: Allen Browne | last post by:
If you develop for others, you probably have multiple versions of Access installed so you can edit and create MDEs for clients in different versions. This works fine under Windows XP, even with...
2
by: Ntl News Group | last post by:
Is it possible to run Access 97 on Windows Vista? I have installed Access 97 and Access 2000, when I run Access 2000, then try to open Access 97 it says it cant find the windows registry entries?...
6
by: vovan | last post by:
I'm asking for help one more time. Below are 2 procedures. The first one is used in VB 2005 Windows Form project. It works fine on XP, Vista. Private Sub RegistryReadingTest() Try Dim f As New...
3
by: JB | last post by:
I am trying to access a registry key on computer like so: key = RegistryKey.OpenRemoteBaseKey(RegistryHive.LocalMachine, computerName).OpenSubKey(Subkey); There are two keys I am trying to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.