G
Guest
I am attempting to write an encrypted password to the Registry, from a VB
ASP.Net App and similarly read it in a Webservice .
I have tried the RegistryPermissions code etc from the MSDN help,
Dim f As New
RegistryPermission(RegistryPermissionAccess.AllAccess, _
"HKEY_LOCAL_MACHINE\SOFTWARE\")
f.Assert()
?? how does one tie this up to the RegistryKey class?? if at all.
but .. the error persists.
(
I am currently trying to develop this on my DevMachine, (Administrator
rights etc), though this will need to be deployed to a Windows 2000 server or
similar.
Lost (......yet again !) ..
Anybody...?
TIA
Code is as follows
Dim subkey As RegistryKey =
Registry.LocalMachine.CreateSubKey("SOFTWARE\UCT-SPLUS\DbPwd")
which is where the error occurs.. thereafter one assumes the setValue will
work.
subkey.SetValue("DBPwd", sPwdValue)
ASP.Net App and similarly read it in a Webservice .
I have tried the RegistryPermissions code etc from the MSDN help,
Dim f As New
RegistryPermission(RegistryPermissionAccess.AllAccess, _
"HKEY_LOCAL_MACHINE\SOFTWARE\")
f.Assert()
?? how does one tie this up to the RegistryKey class?? if at all.
but .. the error persists.
(
I am currently trying to develop this on my DevMachine, (Administrator
rights etc), though this will need to be deployed to a Windows 2000 server or
similar.
Lost (......yet again !) ..
Anybody...?
TIA
Code is as follows
Dim subkey As RegistryKey =
Registry.LocalMachine.CreateSubKey("SOFTWARE\UCT-SPLUS\DbPwd")
which is where the error occurs.. thereafter one assumes the setValue will
work.
subkey.SetValue("DBPwd", sPwdValue)