Toddm
2004-10-29 00:08:02 UTC
I have an ASP Page that is reading the registry using the following VBScript:
'Get Environment value from Registry
Dim objShell, environment
Set objShell = Server.CreateObject("WScript.Shell")
environment = UCase(objShell.RegRead("HKLM\SOFTWARE\Chela
Financial\Environment\"))
The code was working and then I got the following error:
WshShell.RegRead error '80070006'
Invalid root in registry key "HKLM\SOFTWARE\Chela Financial\Environment\".
I restarted IIS and the code worked again.
Does anyone know what the problem is or the solution?
Thanks
Todd McClintock
'Get Environment value from Registry
Dim objShell, environment
Set objShell = Server.CreateObject("WScript.Shell")
environment = UCase(objShell.RegRead("HKLM\SOFTWARE\Chela
Financial\Environment\"))
The code was working and then I got the following error:
WshShell.RegRead error '80070006'
Invalid root in registry key "HKLM\SOFTWARE\Chela Financial\Environment\".
I restarted IIS and the code worked again.
Does anyone know what the problem is or the solution?
Thanks
Todd McClintock