.net - Windows Service Error: Installog access is Denied -


I get an error when installing my Windows service through a command prompt

path Access 'C: \ Windows \ Microsoft.NET \ Framework \ v2.0.50727 \ InstallUtil.In StallLog' is prohibited.

I am using the following command:

  C: \ Windows \ Microsoft.NET \ Framework \ v2.0.50727> installutil.exe "C : \ Hive-WindowsService \ HiveBatchProcess \ HiveBatchProcess \ bin \ Debug \ HiveBatchProcess.exe "-i   

What could be wrong?

Do you have administrator rights? Try running the service prompt by launching the command prompt as an administrator.

Comments