Reading from the Registry in ASP.NET
- by Filip Ekberg
I have a Library ( DLL ) that has a method with the following:
var masterKey =
Registry.
LocalMachine.
OpenSubKey("SOFTWARE\\Microsoft\\Dynamics\\5.0\\");
When running this method in an WinForms applicaiton, masterKey is not null and when running this in asp.net masterKey is null!
I've checked the executing user with WindowsIdentity.GetCurrent().Name and the same user is executing both applications. The asp.net application is executed in visual studio ( debug: F5 ) and so is the WinForms application.
How come I cannot read the key in
asp.net?