Search code examples
asp.netasp.net-mvcweb-config

Specified Web Pages version “3.0.0.0” could not be found. Update your web.config to specify a different version. Current version: “2.0.0.0”


I have this problem in my web service:

Specified Web Pages version “3.0.0.0” could not be found. Update your web.config to specify a different version. Current version: “2.0.0.0”


Solution

  • Install Microsoft.AspNet.WebPages nuget package by entering this line in package manager console:

    Install-Package Microsoft.AspNet.WebPages -Version 3.0.0
    

    Or find and install it using Nuget Package Manager.