Note that there are some explanatory texts on larger screens.

plurals
  1. POError 1053 when installing Windows Service
    text
    copied!<p>I created a demo service.</p> <ol> <li>Build project as is (Service1 constructor, OnStart, OnStop)</li> <li>Added Installer, changed the required properties. </li> <li>Build project.</li> <li>Open command prompt, run "C:\Windows\Microsoft.NET\Framework\v4.0.30319\InstallUtil.exe" TestService.exe</li> <li>Getting the following error on installation</li> </ol> <blockquote> <p>C:\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. All rights reserved.</p> <p>Running a transacted installation.</p> <p>Beginning the Install phase of the installation. See the contents of the log file for the C:\Users**\Documents\Visua l Studio 2010\Projects\TestService\TestService\bin\Debug\TestService.exe assembl y's progress. The file is located at 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...</p> <p>An exception occurred during the Install phase. System.Security.SecurityException: The source was not found, but some or all eve nt logs could not be searched. Inaccessible logs: Security.</p> <p>The Rollback phase of the installation is beginning. See the contents of the log file for the C:\Users**\Documents\Visua l Studio 2010\Projects\TestService\TestService\bin\Debug\TestService.exe assembl y's progress. The file is located at C:\Users**\Documents\Visual Studio 2010\Proj ects\TestService\TestService\bin\Debug\TestService.InstallLog. Rolling back 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 to previous state for source Service1. An exception occurred during the Rollback phase of the System.Diagnostics.EventL ogInstaller installer. System.Security.SecurityException: The source was not found, but some or all eve nt logs could not be searched. Inaccessible logs: Security. 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.</p> <p>The Rollback phase completed successfully.</p> <p>The transacted install has completed. The installation failed, and the rollback has been performed.</p> <p>I tried installing the service using the setup project but everytime i try and run the service it gives <strong>Error 1053</strong></p> </blockquote>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload