Click here to Skip to main content
15,884,739 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi, I have developed a windows service in c# on visual studio 2008. When I compile it there is no error but when I install it using the devloper's command prompt I get this:
CSS
Installing assembly 'F:\PTCL\Projects\clickService\clickService\bin\Debug\clickService.exe'.
Affected parameters are:
   logtoconsole =
   assemblypath = F:\PTCL\Projects\clickService\clickService\bin\Debug\clickService.exe
   logfile = F:\PTCL\Projects\clickService\clickService\bin\Debug\clickService.InstallLog
Installing service clickService...
Creating EventLog source clickService in log Application...
Rolling back assembly 'F:\PTCL\Projects\clickService\clickService\bin\Debug\clickService.exe'.
Affected parameters are:
   logtoconsole =
   assemblypath = F:\PTCL\Projects\clickService\clickService\bin\Debug\clickService.exe
   logfile = F:\PTCL\Projects\clickService\clickService\bin\Debug\clickService.InstallLog
Restoring event log to previous state for source clickService.
An exception occurred during the Rollback phase of the System.Diagnostics.EventLogInstaller installer.
System.Security.SecurityException: 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.


What to do to install and/or test the service.
Posted
Updated 12-Jun-13 0:11am
v2
Comments
Andy Lanng 12-Jun-13 6:13am    
Maybe a silly question, but are you also ensuring that you uninstall it first?
09hadi 12-Jun-13 7:19am    
it hasn't appeared anywhere since the first try
Jameel VM 12-Jun-13 6:20am    
how you install windows service? using command?
09hadi 12-Jun-13 7:13am    
I am installing the service using the Visual Studio 2008 Command Prompt. I use the command
"installutil.exe setup.exe"
Jameel VM 12-Jun-13 7:30am    
open command prompt as RunAsAdministrator and then try

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900