Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > BOOK: Professional C#, 2nd and 3rd Editions
|
BOOK: Professional C#, 2nd and 3rd Editions
This is the forum to discuss the Wrox book Professional C#, 3rd Edition by Simon Robinson, Christian Nagel, Karli Watson, Jay Glynn, Morgan Skinner, Bill Evjen; ISBN: 9780764557590
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional C#, 2nd and 3rd Editions 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 June 15th, 2004, 10:10 PM
Registered User
 
Join Date: Jun 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Issues about PerformanceCounter (Chapter 22)

Hi, all,

After I install the example code for performanceCounter (WinServices\QuoteService), the installation is done successfully, but the Window service "QuoteService" can not be startup, an error event is follows:
================================================== ===============
Event Type: Error
Event Source: QuoteService
Event Category: None
Event ID: 0
Date: 16/06/2004
Time: 2:49:42 p.m.
User: N/A
Computer: FREECITY-HOME
Description:
The description for Event ID ( 0 ) in Source ( QuoteService ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: [u]Service cannot be started. System.InvalidOperationException: The requested Performance Counter is not a custom counter, it has to be initialized as ReadOnly.</u>
at System.Diagnostics.PerformanceCounter.Initialize()
at System.Diagnostics.PerformanceCounter.EndInit()
at Wrox.ProCSharp.WinServices.QuoteServer.InitializeC omponent()
at Wrox.ProCSharp.WinServices.QuoteServer..ctor(Strin g filename, Int32 port)
at Wrox.ProCSharp.WinServices.QuoteService.OnStart(St ring[] args)
at System.ServiceProcess.ServiceBase.ServiceQueuedMai nCallback(Object state).
================================================== ===============

It looks like the way to setting an writable performance counter object is wrong. I did check some web page, did not find solution for this issue yet. Anyone has some idea for this issue?

BTW, My machine is Windows XP Pro + DotNet v1.1 + VS 2003, Thanks.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 1 - PHP installation issues Abelmiah BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 1 June 21st, 2009 05:01 PM
connection string issues, web.config file issues kaliaparijat ASP.NET 2.0 Professional 1 June 12th, 2008 08:07 AM
Chapter 16 Login/Logout Issues tenjinspen BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 2 June 12th, 2008 04:11 AM
Chapter 4 issues HenryT BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 1 June 9th, 2004 02:49 PM





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