Metabase error when trying to use Visual Studios Profiler on an ASP.Net site

Kevin picture Kevin · Jun 29, 2010 · Viewed 8.8k times · Source

I'm trying to run the performance wizard on an ASP.Net website. However, whenever I try to start it I get the following error.

"The website contains unexpected information or you do not have permission to access the metabase. You must be a member of the Administrators group on the local computer to access the IIS matabase. Therefore, you cannot create or open a local IIS website. If you have Read, Write, and Modify Permissions for the folder where the files are located, you can create a file system website that points to the folder in order to proceed"

I am an Administrator on my machine. Tried googling but came up with nothing. Anyone run it before and know how to deal with it?

Answer

Jon Egerton picture Jon Egerton · Jan 21, 2019

Update 2019: The link from msdn that answers this question is now a dead link, but can be found on wayback machine here:

https://web.archive.org/web/20160223061509/http://blogs.msdn.com/b/profiler/archive/2010/07/23/tip-fixing-vsperfaspnetcmd-metabase-errors.aspx.

This page says:

The information in the error is correct and it is worth checking to make sure that you are running from an elevated command prompt, but it does miss a common configuration issue. In order to query for information from the IIS metabase, certain IIS components need to be installed

To check this in Windows 7:

  • Open ‘Control Panel\Programs\Programs and Features’ (or run ‘appwiz.cpl’).
  • Choose ‘Turn Windows features on or off’.
  • In the ‘Internet Information Services’ section, make sure that the following options are selected.

Windows features for VS profiler

The non-default options include:

  • IIS 6 Scripting Tools
  • IIS 6 WMI Compatibility
  • IIS Metabase and IIS 6 configuration compatibility
  • ASP.NET,
  • Windows Authentication