Hi Wisej,
I am using wisej app to read and write Registry.
When running in VisualStudio. It gets value of registry, done.
When running in webhost. It gets value of registry, not done.
How to read and write Registry on webhost?
Thank you.
Hi Huỳnh,
You can also access a registry specific for your Wisej application using something like this:
Application.CommonAppDataRegistry.SetValue(“Test”, “12345”)
It’s saved under (in your case) \HKEY_LOCAL_MACHINE\SOFTWARE\WisejWeb\1.0.0.0.
Best,
Levie
Hi Levie (ITG) ,
I use Application.CommonAppDataRegistry.SetValue(“Testing”, “True”). It is denied
How to use “HKEY_CURRENT_USER\Software” in Wisej app?
Thank you.
Hi Huỳnh,
This isn’t a Wisej issue, but the issue occurs because it’s not reading from where you think it is.
When you try reading from the Registry under that ApplicationPool it’s actually reading from a specific profile in HKEY_USERS.
Try writing to the registry first and then search under HKEY_USERS for the created registry entry.
It will be a path similar to the screenshot I attached!
Best regards,
Levie