【牛腩】ASP.net4.0 尚未在web服务器上注册

版权声明:本文博主原创,部分图片来源网络,侵删致歉,转载标明来源。 https://blog.csdn.net/jing875480512/article/details/81158547

【牛腩】ASP.net4.0 尚未在web服务器上注册

【问题】
  新建立牛腩项目,弹出一个问题:
  ASP.NET 4.0尚未在 Web 服务器上注册。为了使网站正确运行,可能需要手动将 Web 服务器配置为使用 ASP.NET 4.0,按 F1 可了解更多详细信息。

【解决】

方法一、下载微软补丁:

https://blogs.msdn.microsoft.com/webdev/2014/11/11/dialog-box-may-be-displayed-to-users-when-opening-projects-in-microsoft-visual-studio-after-installation-of-microsoft-net-framework-4-6/

【Visual Studio 2012

  • An update to address this issue for Microsoft Visual Studio 2012 has been published: KB3002339
  • To install this update directly from the Microsoft Download Center, here】选择KB3002339和here两个都可以,安装完成后重启VS即可

方法二、手动安装:

  找到C:\Windows\Microsoft.NET\Framework\v4.0.30319 这个目录
  命令提示符以管理员身份运行:
  cd C:\Windows\Microsoft.NET\Framework\v4.0.30319
  在当前目录下输入:
  aspnet_regiis.exe -i
  显示安装完毕则成功

猜你喜欢

转载自blog.csdn.net/jing875480512/article/details/81158547