Jump to content

Windows Service Error: System.Security.SecurityException: Requested registry access is not allowed


Girish Dubey

Recommended Posts


C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319>InstallUtil /i D:\HrmsAlertSvc\Hrm

sAlertSvc.exe

Microsoft ® .NET Framework Installation utility Version 4.0.30319.1

Copyright © Microsoft Corporation. All rights reserved.



Running a transacted installation.


Beginning the Install phase of the installation.

See the contents of the log file for the D:\HrmsAlertSvc\HrmsAlertSvc.exe assemb

ly's progress.

The file is located at D:\HrmsAlertSvc\HrmsAlertSvc.InstallLog.

Installing assembly 'D:\HrmsAlertSvc\HrmsAlertSvc.exe'.

Affected parameters are:

logtoconsole =

i =

logfile = D:\HrmsAlertSvc\HrmsAlertSvc.InstallLog

assemblypath = D:\HrmsAlertSvc\HrmsAlertSvc.exe

Installing service ExitClosuresAlertSvc...

Creating EventLog source ExitClosuresAlertSvc in log Application...


An exception occurred during the Install phase.

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


The Rollback phase of the installation is beginning.

See the contents of the log file for the D:\HrmsAlertSvc\HrmsAlertSvc.exe assemb

ly's progress.

The file is located at D:\HrmsAlertSvc\HrmsAlertSvc.InstallLog.

Rolling back assembly 'D:\HrmsAlertSvc\HrmsAlertSvc.exe'.

Affected parameters are:

logtoconsole =

i =

logfile = D:\HrmsAlertSvc\HrmsAlertSvc.InstallLog

assemblypath = D:\HrmsAlertSvc\HrmsAlertSvc.exe

Restoring event log to previous state for source ExitClosuresAlertSvc.

An exception occurred during the Rollback phase of the System.Configuration.Inst

all.AssemblyInstaller installer.

System.UnauthorizedAccessException: Access to the path 'D:\HrmsAlertSvc\HrmsAler

tSvc.InstallState' is denied.

An exception occurred during the Rollback phase of the installation. This except

ion will be ignored and the rollback will continue. However, the machine might n

ot fully revert to its initial state after the rollback is complete.


The Rollback phase completed successfully.


The transacted install has completed.

The installation failed, and the rollback has been performed.

Link to comment
Share on other sites

i am not able to install windows service in "Microsoft windows server 2003". when i am trying to install windows service i am getting exception "System.Security.SecurityException: Requested registry access is not allowed.". I have all admin rights and also i have run command prompt as administrator.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...