Register .Net Framework version with IIS web server

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

G’day, I’m a technical solutions consultant based in Perth, Australia that specialises in the Microsoft technology stack, including .NET, Dynamics 365, Azure and general web development etc.

This blog is my place to share my thoughts, helpful solutions and just random nerdy stuff.
Shane Bartholomeusz

Latest posts by Shane Bartholomeusz (see all)

Leave a Reply