473,394 Members | 1,761 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.

aspnet_regiis.exe -ir -enable destroys perf counters?

Hello everyone,

I hope this is not an FAQ and that somebody can answer this:

As part of our webservice installation we run

aspnet_regiis.exe -ir -enable

on computers where the web service is supposed to be installed. On some
computers, notably those running Windows 2000, we get corrupted or
missing value entries in
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\ASP.NET_2.0.50727\Performance
when running this command line. Most notably, the DWORD values "First
Counter", "Last Counter, "First Help", "Last Help" are missing and the
result is that typically within 1 minute the application event log is
completely filled with entries that look like this:
Event Type: Error
Event Source: Perflib
Event Category: None
Event ID: 1008
Date: 11/10/2005
Time: 1:34:03 PM
User: N/A
Computer: MeinTollerComputer
Description:
The Open Procedure for service "ASP.NET_2.0.50727" in DLL
"C:\WINNT\Microsoft.NET\Framework\v2.0.50727\aspne t _perf.dll" failed.
Performance data for this service will not be available. Status code
returned is data DWORD 0.
Data:
0000: b7 00 07 80 ·..€

When running the command line above, it says something like

"Setup has detected some errors during the operation. For details,
please read the setup log file
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\ASPNETSetup_000 44.log"

If I look into this log file, the only suspicious line says:

Starting Install common performance counters
2006-11-20 16:56:15 Failure Install common performance counters:
InstallGenericPerfCounters failed with HRESULT 800700b7: 'Cannot create
a file when that file already exists. '
2006-11-20 16:56:15

What is going wrong here? I have no idea what
"InstallGenericPerfCounters" means, anyone with more insight into what
is happening here? How can we prevent this from happening on our
customers' computers?

Please folks, don't tell me to turn off the performance counters for
asp.net, this is not an option for us.
Any help appreciated,
--
Stefan Kuhr
Nov 20 '06 #1
2 5261
re:
-enable
When -enable is specified with -i, -ir or -r, ASP.NET will
be enabled in the IIS security console (IIS 6.0 or later).

You shouldn't run that command on servers running Windows 2000.
Windows 2000 only runs IIS 5.0.

It's only natural that you get corrupted or missing value entries
in servers which don't understand the instructions which "-enable" sends.

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Stefan Kuhr" <ku******@gmx.liwrote in message news:Oo**************@TK2MSFTNGP06.phx.gbl...
Hello everyone,

I hope this is not an FAQ and that somebody can answer this:

As part of our webservice installation we run

aspnet_regiis.exe -ir -enable

on computers where the web service is supposed to be installed. On some computers, notably those
running Windows 2000, we get corrupted or missing value entries in
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\ASP.NET_2.0.50727\Performance when running
this command line. Most notably, the DWORD values "First Counter", "Last Counter, "First Help",
"Last Help" are missing and the result is that typically within 1 minute the application event log
is completely filled with entries that look like this:
Event Type: Error
Event Source: Perflib
Event Category: None
Event ID: 1008
Date: 11/10/2005
Time: 1:34:03 PM
User: N/A
Computer: MeinTollerComputer
Description:
The Open Procedure for service "ASP.NET_2.0.50727" in DLL
"C:\WINNT\Microsoft.NET\Framework\v2.0.50727\aspne t _perf.dll" failed.
Performance data for this service will not be available. Status code
returned is data DWORD 0.
Data:
0000: b7 00 07 80 ·..€

When running the command line above, it says something like

"Setup has detected some errors during the operation. For details, please read the setup log file
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\ASPNETSetup_000 44.log"

If I look into this log file, the only suspicious line says:

Starting Install common performance counters
2006-11-20 16:56:15 Failure Install common performance counters: InstallGenericPerfCounters failed
with HRESULT 800700b7: 'Cannot create a file when that file already exists. '
2006-11-20 16:56:15

What is going wrong here? I have no idea what "InstallGenericPerfCounters" means, anyone with more
insight into what is happening here? How can we prevent this from happening on our customers'
computers?

Please folks, don't tell me to turn off the performance counters for asp.net, this is not an
option for us.
Any help appreciated,
--
Stefan Kuhr


Nov 20 '06 #2
Hello Juan,

Juan T. Llibre wrote:
re:
>-enable

When -enable is specified with -i, -ir or -r, ASP.NET will
be enabled in the IIS security console (IIS 6.0 or later).

You shouldn't run that command on servers running Windows 2000.
Windows 2000 only runs IIS 5.0.

It's only natural that you get corrupted or missing value entries
in servers which don't understand the instructions which "-enable" sends.
Thanks for answering, I will pass this information to the developer in
charge for our setup. However, I don't think that this is the reason why
my perf counter values are lost. I reconstructed the missing values
for "First Counter" and so on on my dev machine and just ran

aspnet_regiis.exe -ir

without "-enable". And again, the same happened: The key
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\ASP.NET_2.0.50727\Performance
first seems to get deleted and then it is only reconstructed halfway,
without the Perf Counter values. The output of aspnet_regiis.exe on the
console is just the same as if I had passed "-enable" and the log file
it refers to still has that strange line indicating

"Install common performance counters: InstallGenericPerfCounters failed
with HRESULT 800700b7"
Any other ideas?

--
Stefan Kuhr
Nov 21 '06 #3

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

Similar topics

0
by: George Durzi | last post by:
I have a web server with both v1.0 and v1.1 of the .NET Framework installed. I'm referencing this article (http://support.microsoft.com/?id=820106) to "tell" my web server to run my web application...
17
by: JStemper | last post by:
On one of my localhost sites I'm getting a message to run aspnet_regiis -c to correct some scripting issues. When I try to run the listed command I get another error: "You must have...
1
by: J Rieggle | last post by:
Hi, Having been flamed for my previous HEEEELP! post and called childish, I decided to reframe this problem - I have to have something ready for tomorrow morning, and my server has stopped...
0
by: richard.warner | last post by:
When you run 'aspnet_regiis -c', the aspnet_client directory is created under EVERY web site on the IIS server. It seems strange that there doesn't seem to be any way of running the command so...
1
by: Marc B. | last post by:
I've been beating my head against the wall trying to do what appears to be really straight forward. I've been attempting the Walkthrough: Creating and Exporting an RSA Key Container...
2
by: APA | last post by:
I'm getting the "Failed to access IIS metabase" error so I tried to run the aspnet_regiis utility to set the permissions (aspnet_regiis -ga username). However, when I run this command all it does...
4
by: Anthony Yott | last post by:
Folks, In using the aspnet_regiis –ga command I'm running into an issue. I'm using this command against a domain account e.g. aspnet_regiis –ga MyDomain\ayott and it works fine. If I perform...
1
by: manishkj | last post by:
Please read carefully, Its aspnet_regiis -i and not aspnet_regiis -c aspnet_regiis -c works for me. I tried all options found on google. Also I'm local admin on box. No article on Microsoft. ...
8
by: David Thielen | last post by:
Hi; In our setup program how do I determine if I need to run "aspnet_regiis –i" and if so, is there an API I can calll rather than finding that program on the user's disk and calling it? --...
1
by: twdo | last post by:
I am working on a hosting control panel. I am adding support for multiple server and would like to know if aspnet_regiis.exe has a switch for the server name. For example, I have an ASPX page...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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.