Using Registry namespace with WebForms
ASP.NET
2
Posts
2
Posters
0
Views
1
Watching
-
Can I use the Registry namespace in an ASP.NET proejct. It seems to compile and not complain but when I trace over it, I don't get the values back I get when the same code is in normal application.... Thanks Ralph Krausse
I'm not absolutely certain here, but some registry values and access to registry values depend on the interactive user and the permissions of the interactive user. When you execute an ASP.NET application, it is, by default, authenticated to the server (even if that is your local machine) as the ASP.NET interactive user (ASPNET). Perhaps if you set your app for Windows authentication, you'll have your normal permissions and be able to see the values you expect.