Unable to access the IIS metabase. You do not have sufficient privilege to access IIS web sites on your machine.

Answered Unable to access the IIS metabase. You do not have sufficient privilege to access IIS web sites on your machine.

  • Monday, October 22, 2012 7:30 PM
     
     

    I have a .NET 4.0 WCF solution that I am trying to load in VS2012 for the purposes of converting to VS2012 / .NET 4.5.  VS2012 properly detects that the project should be hosted by IIS and tries to alter the metabase for the virtual application.  Unforunately, it blows up with the following error:

    The Web Application Project Acme.Foo 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.

    Note, I am logged in as my domain user account on Windows Server 2012.  This user is a local admin.  Note, the UAC level is turned all the way down (Never notify).



    Please advise.
    • Edited by scott_m Monday, October 22, 2012 7:33 PM
    •  

All Replies

  • Monday, October 22, 2012 8:55 PM
     
     
    I don't know how this works on Windows 2012, but on Windows 2008 you had to install metabase access separately as a sub component of IIS, maybe you even need IIS6 metabase compatibility turned on.
  • Monday, October 22, 2012 10:11 PM
     
     Answered

    Apparently, you must run visual studio as Administrator or metabase modifications will fail.

    • Marked As Answer by scott_m Monday, October 22, 2012 10:11 PM
    •  
  • Friday, October 26, 2012 9:06 AM
     
     

    Hi,

    I'm having the same issue and starting Visual Studio as administrator fixed the problem. However, I can't believe that I will always have to run VS as admin... 

    Is there any other way to fix this problem?

    Thanks and regards,

    Matthieu