tag:blogger.com,1999:blog-18289862.post7443858001060438071..comments2023-05-11T04:24:45.836-05:00Comments on <br><br><br> RobLog: The requested Performance Counter is not a custom counter, it has to be initialized as ReadOnlyAnonymoushttp://www.blogger.com/profile/12436201698772120808noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-18289862.post-86402228762627528542015-01-27T18:05:02.714-06:002015-01-27T18:05:02.714-06:00The article is very helpful to me. My Windows serv...The article is very helpful to me. My Windows service has its own custom counters installed during setup. However, an external library referenced in the Windows service has additional counters and those counters had not been installed on new host, which causes problem. The lesson is copying a dll to application is sometimes not enough. Thanks!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-18289862.post-27119435005857090952012-02-17T00:27:14.622-06:002012-02-17T00:27:14.622-06:00Sanoj, you saved my day.Sanoj, you saved my day.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-18289862.post-42963131457698911612011-11-08T01:09:38.782-06:002011-11-08T01:09:38.782-06:00If you are getting this issue on commerce server s...If you are getting this issue on commerce server sites. below is the solution:<br /><br />1) Open the Commerce Server 2007 command line prompt<br />2) Type csconfig.exe /r Feature.MS.CS.PerfCounters and press Enter<br />3) Click next button to reconfigure performance counter on each steps. <br />4) Recycle the application pool for all applications which use the commerce server.Sanoj Kumarhttp://facebook.com/sanojtomarnoreply@blogger.comtag:blogger.com,1999:blog-18289862.post-57707983565609994922009-04-30T17:23:00.000-05:002009-04-30T17:23:00.000-05:00As I mentioned in the post, this problem occurs be...As I mentioned in the post, this problem occurs because of an attempt (in code) to create a performance counter object that is not properly registered in Windows. <br /><br />The solutions are to: 1) Register the counters using InstallUtil, or 2) Eliminate the code that uses them (if the install source of counters is not available). <br /><br />If you didn't write the code, you will have to blindly try to find the counters in question in their DLL. If you can read source code, you can use .Net Reflector to disassemble whatever module is throwing the error (read your stack trace) to find what specific Perfmon object it's attempting to create. <br /><br />Odds are high that the counters in question are part of whatever you're trying to run that's having this problem. You can always try running InstallUtil on every DLL you've installed recently. If they were smart, whoever developed the system might have named the DLL containing the install source something with Performance or PerfMon or Counters in the name.Anonymoushttps://www.blogger.com/profile/12436201698772120808noreply@blogger.com