Search code examples
visual-studioiisconfigurationwarningsvs-web-application-project

Visual Studio web project has IIS configuration warnings


One of the web application projects in my Visual Studio solution has a blue exclamation mark icon on it and the tool tip shows

The Web project <Project.Name.Here> has IIS configuration warnings

I can't see anything in the project Properties pages, or in the web.config file. It started yesterday, and I assumed restarting Visual Studio and reloading the project may get rid of the warning, but it has not.

What is this and how do I go about resolving this issue?


Solution

  • Try right clicking the solution in the 'Solution Explorer', the option 'Resolve Errors' should be available.

    enter image description here

    Selecting this should show you the message behind the icon you're seeing on the project. For me, this was:

    ASP.NET 4.0 has not been registered on the Web server. You need to manually configure your Web server for ASP.NET 4.0 in order for your site to run correctly.

    If this is the message you're receiving, this MS blog post may help you fix it.

    Update

    Note that once you've selected this option, the IDE assumes you've resolved the errors and removes the icon and menu option (!). So make sure you read it or restart VS to see it again.