• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

.NET ASPX app access to registry

DAGTA

Diamond Member
Hello,
I'm trying to set a Windows 2000 server to allow a .NET ASPX application access to read and white to the registry. I have it working on my development machine (running Windows XP Pro) so I know the application code is ok. Setting up the server, it will load the app but throw an error when an attempt is made to access the registry.

I've tried setting up new permission templates, increasing the app's level to Full Trust, and a few other things but so far it still isn't working.

Any help would be greatly appreciated!
Thanks!
-DAGTA
 
I found a way to do it. I'll post instructions here for anyone else that may come upon this thread with the same/similar problem.

To give registry access to a .NET web application:
In Active Directory on the server you are installing the application:
- create a new user with a name and password you will remember.
- add that new user to the administrators group

Open \%windows%\Microsoft.NET\Framework\<version>\Config\machine.config
- find <identity impersonate="false" ...
-change to <identity impersonate="true" username="youruser" password="yourpassword"

Save the changes and you should now have registry acces in your application.
-DAGTA
 
Back
Top