Windows – ‘There was an error reading IIS configuration schema from ‘C:\Windows\system32\inetsrv\config\schema\’ Visual Studio 2010 Windows 8 64-bit

64-bitiisvisual studio 2010web-developmentwindows 8.1

I have a users who is attempting to deploy a web service through Visual Studio 2010 on a windows 8 64-bit laptop but is getting an error.

When the users tries to deploy through visual studio he receives the error message – 'There was an error reading IIS configuration schema from 'C:\Windows\system32\inetsrv\config\schema\'

He is a local admin on the machine, I have turned off User Account Control (UAC) and disabled 'User Account Control: Run all administrators in Admin approval mode.' Security option.

Any help or advice on this would be much appreciated as I am really not sure why this is happening.

Best Answer

I am assuming the following for the comment below :-

  • Run your Visual studio as administrator and try again.

Comment

Please refer to the following link :- http://support.microsoft.com/kb/2735834

This is the known issues for Visual Studio 2010 SP1 on a Windows 8-based computer .

Symptoms

When you try to publish a website or a Web application to http://localhost by using Internet Information Services (IIS) settings in Visual Studio 2010 on a computer that is running Windows 8, you receive an error message that resembles the following:

There was an error reading IIS configuration schema from "C:\Windows\system32\inetsrv\config\schema\"

Workaround

To work around this issue, use one of the following methods:

  • Use Microsoft Visual Studio 2012 to publish the website or the Web application.

  • Use the latest Microsoft Azure SDK for .NET (Visual Studio 2010 SP1) to publish the website or the Web application. Microsoft Azure SDK for .NET provides an updated Web publish experience, and will not cause this problem. The following file is available for download from the Microsoft Download Center: Download the Microsoft Azure SDK for .NET (VS 2010 SP1) package now.

Related Question