System.Security.SecurityException: Requested registry access is not allowed.

170
Views
1
Answers

Hi, When I am trying to run a .net 3.5 application I am getting the following error

System.Security.SecurityException: Requested registry access is not allowed.

How to fix this?

edit | flag
William Patrick
Asked on: Sep 15, 2011 at 9:31PM

1 Answers

59
5
59

Try this.
1.Create an application pool on IIS for your application and set the Identity of that new app pool to "Local System".
2.Then change the pool of your web application to the new one you created.
So you will make your application running with local system credentials and you will be able to access to the registry.

edit | flag
Gokul A
Answered on: Sep 15, 2011 at 9:32PM

Post your Answer

Search

Welcome to Ask Amoeba!
This is 100% free and interactive site for sharing professional Questions and Answers, Opensource projects, Interview questions.
Learners, beginners, Experts stop and share your knowledge and ideas!

Browse Categories

Browse Tags