Wrox Programmer Forums
|
BOOK: Professional C# 4.0 and .NET 4
This is the forum to discuss the Wrox book Professional C# 4.0 and .NET 4 by Christian Nagel, Bill Evjen, Jay Glynn, Karli Watson, Morgan Skinner; ISBN: 9780470502259
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional C# 4.0 and .NET 4 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 19th, 2010, 02:29 PM
Registered User
 
Join Date: Apr 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Windows Services

Hi,

I can't run chapter 25 Windows Service 's sample.
Any help (you hear me authors?) will be welcome. Thank a lot.

When I run Installutil. exe (x64), I have:

Microsoft (R) .NET Framework Installation utility Version 4.0.30319.1
Copyright (c) Microsoft Corporation. All rights reserved.


Running a transacted installation.

Beginning the Install phase of the installation.
See the contents of the log file for the F:\Microsoft Visual Studio 10.0\VC\toto\quoteservice.exe assembly's progress.
The file is located at F:\Microsoft Visual Studio 10.0\VC\toto\quoteservice.InstallLog.
Installing assembly 'F:\Microsoft Visual Studio 10.0\VC\toto\quoteservice.exe'.
Affected parameters are:
logtoconsole =
assemblypath = F:\Microsoft Visual Studio 10.0\VC\toto\quoteservice.exe
logfile = F:\Microsoft Visual Studio 10.0\VC\toto\quoteservice.InstallLog
Installing service QuoteService...
Creating EventLog source QuoteService in log Application...

An exception occurred during the Install phase.
System.Security.SecurityException: The source was not found, but some or all event logs could not be searched. Inaccessible logs: Security.

The Rollback phase of the installation is beginning.
See the contents of the log file for the F:\Microsoft Visual Studio 10.0\VC\toto\quoteservice.exe assembly's progress.
The file is located at F:\Microsoft Visual Studio 10.0\VC\toto\quoteservice.InstallLog.
Rolling back assembly 'F:\Microsoft Visual Studio 10.0\VC\toto\quoteservice.exe'.
Affected parameters are:
logtoconsole =
assemblypath = F:\Microsoft Visual Studio 10.0\VC\toto\quoteservice.exe
logfile = F:\Microsoft Visual Studio 10.0\VC\toto\quoteservice.InstallLog
Restoring event log to previous state for source QuoteService.
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.

The Rollback phase completed successfully.

The transacted install has completed.
The installation failed, and the rollback has been performed.
 
Old September 30th, 2010, 05:01 PM
Wrox Author
 
Join Date: Sep 2010
Posts: 175
Thanks: 3
Thanked 53 Times in 53 Posts
Default

You need to run the installutil utility from an elevated command prompt. Admin rights are required by this utility.
Hope this helps.
__________________
Christian
CN innovation
Visit my blog at: csharp.christiannagel.com
Follow me on twitter: @christiannagel





Similar Threads
Thread Thread Starter Forum Replies Last Post
windows services rana018 C# 0 August 16th, 2006 05:13 AM
Windows services in C# arielote C# 1 December 27th, 2005 06:13 PM
windows services marclena General .NET 0 June 30th, 2004 11:22 AM
Windows Services rodmcleay General .NET 1 June 29th, 2004 01:34 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.