IIS Privilege Error opening local Web Site with Visual Studio Express 2013 for Web

Lothar Krepke 0 Reputation points
2023-01-20T17:10:02.1166667+00:00

Hello,

Under Win 10 22H2, I have a recent install of Visual Studio 2013 Express for Web. I have used the product successfully for a few days, but only as my HTML editor. (Overkill, I know, but always worked well for my needs...)

Now when I click File | Open Web Site the folders display, and I click on the folder that contains our site, and its correct path displays. But when I click "Open" I get this error:

"Unable to access the IIS Metabase. You do not have sufficient privilege to access the IIS Web Sites on your machine."

(I am running VS as an Administrator...)

Also, this problem started after some Win updates were installed.

I saw the suggestion that I install IIS 6, did that, rebooted, but still see the same error each time I try to open our web site.

How should I proceed?

Many thanks,

Lothar

Windows development | Internet Information Services
Developer technologies | Visual Studio | Other
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Santhi Swaroop Naik Bukke 595 Reputation points
    2023-01-20T18:21:03.49+00:00

    The "IIS Privilege Error" when opening a local web site with Visual Studio Express 2013 for Web can occur due to a few reasons:

    1. Insufficient permissions: You may not have the necessary permissions to open the web site in Visual Studio Express 2013 for Web. Try running Visual Studio Express 2013 for Web as an administrator to see if that resolves the issue.
    2. IIS Express is not installed or configured correctly: IIS Express is required to run web sites in Visual Studio Express 2013 for Web. Check that IIS Express is installed and configured correctly on your machine.
    3. Visual Studio Express 2013 for Web is not configured to use IIS Express: Visual Studio Express 2013 for Web may not be configured to use IIS Express as the web server. Check your settings in Visual Studio Express 2013 for Web to make sure that IIS Express is selected as the web server.
    4. Incorrect IIS Express version: Make sure you are using the correct version of IIS Express that corresponds to Visual Studio Express 2013 for Web.
    5. A firewall or antivirus software is blocking Visual Studio Express 2013 for Web: Some firewall or antivirus software can block Visual Studio Express 2013 for Web from accessing the web site. Check the settings of your firewall or antivirus software and add an exception for Visual Studio Express 2013 for Web if necessary.
    6. The website is not properly configured: Make sure the website is properly configured and that the files and folders that the website uses are accessible to the user running the Visual Studio Express 2013 for Web.

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    0 comments No comments

  2. Lothar Krepke 0 Reputation points
    2023-01-20T18:40:45.8366667+00:00

    Hello,

    I do appreciate your suggestions, though I had tried most of them without success.

    But moments ago, I found that I could use VS by temporarily turning off Windows Folder Control. I had tried earlier to list VS as a safe program in that function, but it did not work.

    For now, I am set, so thanks again,

    Lothar

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.