c# - Reading from the Registry in ASP.NET -


i have library ( dll ) has method following:

var masterkey =           registry.     localmachine.     opensubkey("software\\microsoft\\dynamics\\5.0\\"); 

when running method in winforms applicaiton, masterkey not null , when running in asp.net masterkey null!

i've checked executing user windowsidentity.getcurrent().name , same user executing both applications. asp.net application executed in visual studio ( debug: f5 ) , winforms application.

how come cannot read key in asp.net?

edit

i've set permissions none ever , gives me "access denied". , when add group users null. mean can fold strucutre , see it's there, cannot access keys/entried.

i connected domain, shouldn't affect local instances of iis, should it?

try granting network service

http://msdn.microsoft.com/en-us/library/ms998320.aspx

the network service account not have write access registry. if application needs write registry, must configure necessary access control lists (acls) on required registry keys.


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -