Cannot load Counter Name data because an invalid index ” was read from the registry
When we are trying to read system performance counters, some time we will get this type of error on machines.
“Cannot load Counter Name data because an invalid index ” was read from the registry”
To fix the issue:
Click the START button
Right click CMD PROMPT and select “Run As Administrator”
Type LODCTR /r
Wait a few seconds, you will get “Error: Unable to rebuild performance counter setting from system backup store, error code is 2”
Now again Type LODCTR /r
This time it will run successfully with the message “Info: Successfully rebuilt performance counter setting from system backup store”
Close he CMD.
Enabling compression of static and dynamic contents of your website will be more help to load your website faster on browsers.
To enabling both you must have to install “Dynamic Compression” and “Static Compression” on the server features and roles.
Open server manager
Roles > Web Server (IIS)
Role Services (scroll down) > Add Role Services
Add desired role (Web Server > Performance > Dynamic Content Compression & Static Content Compression)
Next, Install, Wait for couple of seconds?Done!
To Enable it:
Open your web.config and add the following configuration in webServer tag.
<urlCompression doStaticCompression="true" doDynamicCompression="true" dynamicCompressionBeforeCache="true"/>
<httpCompression noCompressionForHttp10="false" noCompressionForProxies="false" dynamicCompressionDisableCpuUsage="93" dynamicCompressionEnableCpuUsage="93" staticCompressionDisableCpuUsage="99" staticCompressionEnableCpuUsage="99">
<scheme name="gzip" dll="%Windir%\System32\Inetsrv\gzip.dll" staticCompressionLevel="9" dynamicCompressionLevel="4" doDynamicCompression="true" doStaticCompression="true"/>