ASP.NET 4.0 has not been registered on the Web server. You must manually configure your Web site for ASP.NET 4.0 if you want your site to run correctly.
如何在 Windows 7 上的 Visual Studio 2012 中解决此问题。
答案 0 :(得分:-2)
在Visual Studio 2012上打开解决方案(我的项目的目标框架是.NET Framework 4.0)时,我收到了同样的错误消息,除了我在我的计算机上安装了.NET Framework 4.6的Windows 10。手动下载并安装 Microsoft Visual Studio 2012更新KB3002339 后,我已修复此问题。
这是我下载VS2012更新KB3002339的页面: https://support.microsoft.com/pt-pt/help/3002339/unexpected-dialog-box-appears-when-you-open-projects-in-visual-studio