c# - Error 1053 when installing Windows Service -
i created demo service.
build project (service1 constructor, onstart, onstop) added installer, changed required properties. build project. open command prompt, run "c:\windows\microsoft.net\framework\v4.0.30319\installutil.exe" testservice.exe getting next error on installationc:\users**>"c:\windows\microsoft.net\framework\v4.0.30319\installut il.exe" "c:\users**\documents\visual studio 2010\projects\testservi ce\testservice\bin\debug\testservice.exe" microsoft (r) .net framework installation utility version > copyright (c) microsoft corporation. rights reserved.
running transacted installation.
beginning install phase of installation. see contents of log file c:\users**\documents\visua l studio 2010\projects\testservice\testservice\bin\debug\testservice.exe assembl y's progress. file located @ c:\users**\documents\visual studio 2010\proj ects\testservice\testservice\bin\debug\testservice.installlog. installing assembly 'c:\users**\documents\visual studio 2010\projec ts\testservice\testservice\bin\debug\testservice.exe'. affected parameters are: logtoconsole = logfile = c:\users**\documents\visual studio 2010\projects\tests ervice\testservice\bin\debug\testservice.installlog assemblypath = c:\users**\documents\visual studio 2010\projects\ testservice\testservice\bin\debug\testservice.exe installing service service1... creating eventlog source service1 in log application...
an exception occurred during install phase. system.security.securityexception: source not found, or eve nt logs not searched. inaccessible logs: security.
the rollback phase of installation beginning. see contents of log file c:\users**\documents\visua l studio 2010\projects\testservice\testservice\bin\debug\testservice.exe assembl y's progress. file located @ c:\users**\documents\visual studio 2010\proj ects\testservice\testservice\bin\debug\testservice.installlog. rolling assembly 'c:\users**\documents\visual studio 2010\proj ects\testservice\testservice\bin\debug\testservice.exe'. affected parameters are: logtoconsole = logfile = c:\users**\documents\visual studio 2010\projects\tests ervice\testservice\bin\debug\testservice.installlog assemblypath = c:\users**\documents\visual studio 2010\projects\ testservice\testservice\bin\debug\testservice.exe restoring event log previous state source service1. exception occurred during rollback phase of system.diagnostics.eventl oginstaller installer. system.security.securityexception: source not found, or eve nt logs not searched. inaccessible logs: security. exception occurred during rollback phase of installation. except ion ignored , rollback continue. however, machine might n ot revert initial state after rollback complete.
the rollback phase completed successfully.
the transacted install has completed. installation failed, , rollback has been performed.
i tried installing service using setup project everytime seek , run service gives error 1053
c# service
No comments:
Post a Comment