Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > BOOK: Professional C#, 2nd and 3rd Editions
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 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 Display Modes
  #1 (permalink)  
Old June 15th, 2004, 11:10 PM
Registered User
 
Join Date: Jun 2004
Location: , , .
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.
 


Thread Tools
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
Chapter 1 - PHP installation issues Abelmiah BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 1 June 21st, 2009 06:01 PM
connection string issues, web.config file issues kaliaparijat ASP.NET 2.0 Professional 1 June 12th, 2008 09: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 05:11 AM
Chapter 4 issues HenryT BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 1 June 9th, 2004 03:49 PM



All times are GMT -4. The time now is 09:53 AM.


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