{"id":964,"date":"2013-11-15T08:08:00","date_gmt":"2013-11-15T08:08:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/webdev\/2013\/11\/15\/asp-net-performance-performance-counters-on-windows-client-iis-express\/"},"modified":"2013-11-15T08:08:00","modified_gmt":"2013-11-15T08:08:00","slug":"asp-net-performance-performance-counters-on-windows-client-iis-express","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/dotnet\/asp-net-performance-performance-counters-on-windows-client-iis-express\/","title":{"rendered":"ASP.NET Performance: Performance Counters on Windows Client + IIS Express"},"content":{"rendered":"<p><em>Editor note: This blog is originally published by <\/em><a href=\"http:\/\/blogs.msdn.com\/62768\/ProfileUrlRedirect.ashx\">Christy Henriksson<\/a><em> on 09-12-2012 in <\/em><a href=\"http:\/\/blogs.msdn.com\/b\/web_performance_blog\/\"><em>Web Performance Blog<\/em><\/a><em>, which will be obsolete soon.&nbsp; Future ASP.NET related performance blogs will be posted here.<\/em><\/p>\n<p>I learned recently that ASP.NET performance counters are not available on Windows 7 or 8 (client) when running with IIS Express (or the Dev10 default of Cassini).&nbsp; Fortunately, the fix is easy: run Visual Studio as Administrator.<\/p>\n<p>If you&rsquo;re using IIS Express without Visual Studio installed (for example, WebMatrix), then you&rsquo;ll first need to install ASP.NET 4.5 features:<\/p>\n<p><em>dism \/online \/enable-feature \/featureName:NetFx4Extended-ASPNET45 \/all<\/em><\/p>\n<p><strong>UPDATE: <\/strong>The above dism command is specific to Win8.&nbsp; Basically, you need to make sure ASP.NET features are enabled on the machine in order for performance counters to get registered.&nbsp; This happens automatically when you install VS.&nbsp; For Win7 client, you can enable ASP.NET 3.5 features with a command like the following (note that \/all isn&rsquo;t available for automatically enabling parent features):<\/p>\n<p><em>dism \/online \/enable-feature \/featurename:IIS-WebServerRole \/featurename:WAS-WindowsActivationService \/featurename:WAS-ProcessModel \/featurename:WAS-NetFxEnvironment \/featurename:WAS-ConfigurationAPI \/featurename:IIS-ApplicationDevelopment \/featurename:IIS-ASPNET \/featurename:IIS-DefaultDocument \/featurename:IIS-NetFxExtensibility \/featurename:IIS-ISAPIExtensions \/featurename:IIS-ISAPIFilter \/featurename:IIS-RequestFiltering \/featurename:IIS-Metabase \/featurename:IIS-WMICompatibility \/featurename:IIS-LegacyScripts \/featurename:IIS-IIS6ManagementCompatibility \/featurename:IIS-WebServerManagementTools \/featurename:IIS-HttpTracing<\/em><\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Editor note: This blog is originally published by Christy Henriksson on 09-12-2012 in Web Performance Blog, which will be obsolete soon.&nbsp; Future ASP.NET related performance blogs will be posted here. I learned recently that ASP.NET performance counters are not available on Windows 7 or 8 (client) when running with IIS Express (or the Dev10 default [&hellip;]<\/p>\n","protected":false},"author":410,"featured_media":58792,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[197],"tags":[31,108],"class_list":["post-964","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-aspnet","tag-asp-net","tag-performance"],"acf":[],"blog_post_summary":"<p>Editor note: This blog is originally published by Christy Henriksson on 09-12-2012 in Web Performance Blog, which will be obsolete soon.&nbsp; Future ASP.NET related performance blogs will be posted here. I learned recently that ASP.NET performance counters are not available on Windows 7 or 8 (client) when running with IIS Express (or the Dev10 default [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts\/964","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/users\/410"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/comments?post=964"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts\/964\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/media\/58792"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/media?parent=964"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/categories?post=964"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/tags?post=964"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}