473,394 Members | 1,902 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

enterprise library logging creates errors

JV
I added enterprise library logging to an application using a custom event
log. It works but it generates error entries in the Application log as
well. Apparently it's trying to create some sort of counters and failing.
I have so far found nothing to explain this.

Error examples:

Failed to create instances of performance counter 'Client: # of Logs
Written/Sec' - The requested Performance Counter is not a custom counter, it
has to be initialized as ReadOnly..

Failed to create instances of performance counter 'Distributor: # of Logs
Distributed/Sec' - The requested Performance Counter is not a custom
counter, it has to be initialized as ReadOnly..

Failed to create instances of performance counter '# of Exceptions
Handled/Sec' - The requested Performance Counter is not a custom counter, it
has to be initialized as ReadOnly..
Nov 17 '05 #1
4 8387

Did you run the "Install Services" script from the Enterprise Library
folder on the Start Menu ?
In article <ee**************@TK2MSFTNGP09.phx.gbl>,
jo**********@goisc.com says...
I added enterprise library logging to an application using a custom event
log. It works but it generates error entries in the Application log as
well. Apparently it's trying to create some sort of counters and failing.
I have so far found nothing to explain this.

Error examples:

Failed to create instances of performance counter 'Client: # of Logs
Written/Sec' - The requested Performance Counter is not a custom counter, it
has to be initialized as ReadOnly..

Failed to create instances of performance counter 'Distributor: # of Logs
Distributed/Sec' - The requested Performance Counter is not a custom
counter, it has to be initialized as ReadOnly..

Failed to create instances of performance counter '# of Exceptions
Handled/Sec' - The requested Performance Counter is not a custom counter, it
has to be initialized as ReadOnly..


--
************************************************** **************
Tapio Kulmala

"Those are my principles. If you don't like them I have others."

- Groucho Marx
************************************************** **************
Nov 17 '05 #2
JV
To be honest, I don't recall. Is this something that would be necessary to
deploy on servers where the logging is being used?

"Tapio Kulmala" <ta******@hotmail.com> wrote >
Did you run the "Install Services" script from the Enterprise Library
folder on the Start Menu ?

Nov 17 '05 #3
Yes.

Don't ask why.

In article <uo**************@TK2MSFTNGP12.phx.gbl>,
jo**********@goisc.com says...
To be honest, I don't recall. Is this something that would be necessary to
deploy on servers where the logging is being used?

Nov 17 '05 #4
JV
Thanks for pointing this out. I'm annoyed that I got this far down the road
without the EL documentation clearly stating that this step would be needed
just to do simple logging to the Event Log. I could have written something
simpler and lower overhead.

I probably will yank the enterprise library after all, since running this
BAT file did not fix the problem we are having.
Nov 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: JV | last post by:
I added enterprise library logging to an application using a custom event log. It works but it generates error entries in the Application log as well. Apparently it's trying to create some sort...
1
by: Ollie Riches | last post by:
I am trying to use asynchronous logging using MSMQ and I have configured the properties as defined in the help (see below) I don't understand where the property 'MsmqPath' is in the app.config for...
0
by: Benny Ng | last post by:
Hi,All, When i deploy Enterprise library with my application ,i used XCOPY to deploy it into my test server. But when application runs, shown some error related registry. (But actually I haven't...
6
by: Jonathan Crawford | last post by:
Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable) +473 Hi I have installed the enterprise library on a development machine and created a project on our webserver. When...
3
by: Udi | last post by:
Hi All, I'm developping an application that has a very strong logging requirement - we should be able to log up to 5000 messages per second, most of them are reletively small -(16 - 30 Words)...
0
by: Eniac | last post by:
Hello, I've started using Enterprise Library 2.0 recently and I've encountered a problem that seems to be ... well... undocumented :) Basically, when I set a Trace Listener (formatted event...
0
by: =?Utf-8?B?YW5rMmdv?= | last post by:
Hi, Thanks in advance for reading this. Not sure where to post this question, but I hope someone in here can help. Trying to write to Event Log in VS 2005 (.NET 2.0) using Enterprise Library...
0
by: =?Utf-8?B?U2hyaWthbnQgTW9yZQ==?= | last post by:
Using enterprise library's 3.1 Logging Application Block , how can i get the custom source name in the windows event log.When ever i am logging an error in windows event log , it gives the source...
1
by: arunairs | last post by:
Hi, Using the EnterpriseLibrary 4.0, is it possible to Log the method name in the log file. I have it cofigured thus: <loggingConfiguration name="Logging Application Block"...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.