tybarton
asked on
Insatll Windows service Windows 7
I have a service I created and cannot get it to install on Windows 7. I recently upgraded my PC from Vista where I never had an issue. I ran the same command I do on Vista but keep getting an error. See below.
Installing assembly 'C:\LHSystemHealth\LHSyste mHealth.ex e'.
Affected parameters are:
logtoconsole =
logfile = C:\LHSystemHealth\LHSystem Health.Ins tallLog
assemblypath = C:\LHSystemHealth\LHSystem Health.exe
Installing service LHSystemHealthMon...
Creating EventLog source LHSystemHealthMon in log Application...
Rolling back assembly 'C:\LHSystemHealth\LHSyste mHealth.ex e'.
Affected parameters are:
logtoconsole =
logfile = C:\LHSystemHealth\LHSystem Health.Ins tallLog
assemblypath = C:\LHSystemHealth\LHSystem Health.exe
Restoring event log to previous state for source LHSystemHealthMon.
An exception occurred during the Rollback phase of the System.Diagnostics.EventLo gInstaller installer.
System.Security.SecurityEx ception: The source was not found, but some or all event logs could not be searched. Inaccessible logs: Security.
An exception occurred during the Rollback phase of the installation. This exception will be ignored and the rollback will continue. However, the machine might not fully revert to its initial state after the rollback is complete.
So I then changed to an older version of the .Net framework and got a error that the path to the .Net framework folder was not accessible due to permissions. I am logged in as an administrator so there should not be any issues.
Help would be appreciated.
The service is located in a folder on the C drive.
Tyler
Installing assembly 'C:\LHSystemHealth\LHSyste
Affected parameters are:
logtoconsole =
logfile = C:\LHSystemHealth\LHSystem
assemblypath = C:\LHSystemHealth\LHSystem
Installing service LHSystemHealthMon...
Creating EventLog source LHSystemHealthMon in log Application...
Rolling back assembly 'C:\LHSystemHealth\LHSyste
Affected parameters are:
logtoconsole =
logfile = C:\LHSystemHealth\LHSystem
assemblypath = C:\LHSystemHealth\LHSystem
Restoring event log to previous state for source LHSystemHealthMon.
An exception occurred during the Rollback phase of the System.Diagnostics.EventLo
System.Security.SecurityEx
An exception occurred during the Rollback phase of the installation. This exception will be ignored and the rollback will continue. However, the machine might not fully revert to its initial state after the rollback is complete.
So I then changed to an older version of the .Net framework and got a error that the path to the .Net framework folder was not accessible due to permissions. I am logged in as an administrator so there should not be any issues.
Help would be appreciated.
The service is located in a folder on the C drive.
Tyler
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.