Ask a Question related to ASP.NET Security, Design and Development.
-
Steve #1
Error accessing Registry from Windows app
When attempting to access the Registry, I receive errors.
I have attempted to add code to assert access to the key,
but this does not help. The documentation on accessing
the Registry is pathetic.
Dim rp As New
System.Security.Permissions.RegistryPermission
(Security.Permissions.RegistryPermissionAccess.All Access,
"HKEY_CURRENT_USER\SOFTWARE\MyApplication")
oKey = Microsoft.Win32.Registry.CurrentUser.OpenSubKey
("Software").OpenSubKey("MyApplication").OpenSubKe y
("Database")
oKey.SetValue("Databases", "1")
Error Message:
An unhandled exception of
type 'System.UnauthorizedAccessException' occurred in
mscorlib.dll
Additional information: Cannot write to the registry key.
Steve Guest
-
401 Error on Windows 2003 Server Accessing Web Service
Hi. I have a web service running on 2003 Server. The client app running on the same machine gets a 401 error, but browsing the web service in... -
Accessing the server's registry in an ASP.Net Web Service...
I've found this article on how to get ASP.Net to read/write from the server's registry, but it got heavily critted as being something that you... -
Getting an error while accessing Web Services from a Windows Client
I have deployed the same web services in two machines. I have used Microsoft Web services extensions. The web service has a method Search. When... -
Problem accessing Windows 2003 DC Registry Keys
Hi, I'm trying to read some Registry Keys I've created with a Web Service, in my workstation it works fine, but when i move it to a server (a... -
Error accessing the OLE registry.
Hi all, Hopefully someone can shed some light on a radical error I am getting. I am using windows XP Corp Edition with IIS 5.1 as a dev... -
Paul Glavich #2
Re: Error accessing Registry from Windows app
Use the Regedt32 tool (in Win2000) or Regedit (WinXP) to set read/write
access on the particular registry key for the user your are trying to access
with, or the group that the user(s) are a member of.
--
- Paul Glavich
"Steve" <slraymond@hotmail.com> wrote in message
news:002501c3b6a7$19f84300$a501280a@phx.gbl...> When attempting to access the Registry, I receive errors.
> I have attempted to add code to assert access to the key,
> but this does not help. The documentation on accessing
> the Registry is pathetic.
>
> Dim rp As New
> System.Security.Permissions.RegistryPermission
> (Security.Permissions.RegistryPermissionAccess.All Access,
> "HKEY_CURRENT_USER\SOFTWARE\MyApplication")
> oKey = Microsoft.Win32.Registry.CurrentUser.OpenSubKey
> ("Software").OpenSubKey("MyApplication").OpenSubKe y
> ("Database")
> oKey.SetValue("Databases", "1")
>
>
> Error Message:
>
> An unhandled exception of
> type 'System.UnauthorizedAccessException' occurred in
> mscorlib.dll
>
> Additional information: Cannot write to the registry key.
Paul Glavich Guest



Reply With Quote

