Visual Studio Error

When trying to open a Visual Studio solution, I encountered the following error.

C:\myFilePath\myService.Service.csproj : error  : The Web Application Project XXXXXX.Service is configured to use IIS. IIS is not installed on this computer. To access local IIS Web sites, you must install the following IIS components:       Internet Information Services       IIS 6 Metabase and IIS 6 Configuration Compatibility       ASP.NET In addition, you must run Visual Studio in the context of an administrator account. For more information, press F1.

Dot Net Logo

So what is the solution?

The solution is to register your specific .NET Framework version with IIS using the ASPNET_REGIIS command bundled with your .NET Framework installation.

C:\Windows\Microsoft.NET\Framework\<.NET VERSION>\aspnet_regiis.exe –ir

Command Window screenshot

Shane Bartholomeusz