Skip to content

Fix for Error - "Unable to access the IIS metabase."

Published: at 12:36 AM

Error: The Web Application Project XYZ is configured to use IIS. Unable to access the IIS metabase. You do not have sufficient privilege to access IIS web sites on your machine.

Resolving the Error:

Here’s a step-by-step approach to effectively address this error and empower Visual Studio with the required permissions:

  1. Granting Access to the Metabase Directory:

    • Open Windows File Explorer.
    • Construct the path based on your operating system:
      • Windows 7, 8.1, & 10: %systemroot%\System32\inetsrv\config
      • Windows 8 Pro: %systemroot%\inetsrv\config (Replace %systemroot% with your Windows directory, typically C:\Windows.)
    • Navigate to this directory.
    • You’ll likely encounter a security pop-up stating “You don’t have permission to access this folder.” This is the key! Click the button labeled “Continue”. This grants your user account the necessary permissions to access this folder, enabling Visual Studio to interact with the IIS metabase.
  2. Optional: Verifying Shortcut Properties:

    • In some instances, ensuring your Visual Studio shortcut runs “as administrator” can provide an extra layer of security.
    • Right-click the Visual Studio shortcut and select “Properties”.
    • Navigate to the “Compatibility” tab.
    • Check the box labeled “Run this program as an administrator”.
    • Click “Apply” and “OK” to save these changes. (Note: This step might not be necessary in all cases.)
  3. Restart and Retry:

    • Close and then re-launch Visual Studio.
    • Attempt to deploy your web application project once again. By following these steps, you should be able to resolve the “Unable to Access IIS Metabase” error and resume seamless deployments within Visual Studio.

Additional Considerations:


Previous Post
SQL Query to Get Column Type
Next Post
Write Fast C# Code