Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
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.
  #2 (permalink)  
Old September 30th, 2010, 05:01 PM
Wrox Author
Points: 1,163, Level: 13
Points: 1,163, Level: 13 Points: 1,163, Level: 13 Points: 1,163, Level: 13
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2010
Location: Austria
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
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 09:45 PM.


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