Jump to content
Sign in to follow this  
Girish Dubey

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

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.

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

There's a security problem somewhere, you must not have access to write to the registry.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...