Win10 出现ASP.NET 4.0 尚未在 Web 服务器上注册。为了使网站正确运行,可能需要手动将 Web 服务器配置为使用 ASP.NET 4.0

一辉不死鸟 2015-04-01 07:17:22
我用vs旗舰版2012打开以前建立的net4.0的解决方案就这样
我找到C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319 并管理员运行aspnet_regiis.exe -i
结果一秒钟马上出现下面
Microsoft (R) ASP.NET RegIIS 版本 4.0.30319.0
用于在本地计算机上安装和卸载 ASP.NET 的管理实用工具。
版权所有(C) Microsoft Corporation。保留所有权利。
开始安装 ASP.NET (4.0.30319.0)。
此操作系统版本不支持此选项。管理员应使用“打开或关闭 Windows 功能”对话框、“服务器管理器”管理工具或 dism.exe 命令行工
具安装/卸载包含 IIS8 的 ASP.NET 4.5。有关更多详细信息,请参见 http://go.microsoft.com/fwlink/?LinkID=216771。

ASP.NET (4.0.30319.0)安装完毕。
然后打开这个链接进去好像是
IIS 8.0 Using ASP.NET 3.5 and ASP.NET 4.5
这到底是个什么情况
求大神支招
...全文
44063 25 打赏 收藏 转发到动态 举报
写回复
用AI写文章
25 条回复
切换为时间正序
请发表友善的回复…
发表回复
kaven_a 2018-08-10
  • 打赏
  • 举报
回复
楼上这个方法 有效,我也弄了两个小时,才解决的;一直没去注意这里。
不会老师 2018-07-04
  • 打赏
  • 举报
回复


楼上正确,再付两张图片
Dearbzj 2017-09-29
  • 打赏
  • 举报
回复
控制面板 - 程序和功能 - 启动或关闭windows功能 - Internet Information services - 万维网服务 - 应用程序开发功能 勾选: 1、ASP.NET 3.5 2、ASP.NET 4.6 3、ISAPI扩展 4、ISAPI筛选器 5、.NET Extensibility 3.5 6、.NET Extensibility 4.6
cc加油 2017-08-21
  • 打赏
  • 举报
回复
问题解决了吗
arFei_110 2017-06-06
  • 打赏
  • 举报
回复
引用 18 楼 lover4ever 的回复:
遇到这个问题的朋友如果上面的方法还不能解决问题的话,请试试下面的方法: WIN10系统,控制面板,添加删除程序->Turn windows features on or off -> Internet Information Services -> World Wide web services -> Application Development Features 把需要的asp.net版本勾上,然后在IIS管理器中把你的网站的应用程序池改成其他的试试,用默认的应用程序池可能不行,我就遇到了
这个可用!感谢!!
太虚野老 2017-04-13
  • 打赏
  • 举报
回复
亲测可用,感谢
lover4ever 2017-04-10
  • 打赏
  • 举报
回复
遇到这个问题的朋友如果上面的方法还不能解决问题的话,请试试下面的方法: WIN10系统,控制面板,添加删除程序->Turn windows features on or off -> Internet Information Services -> World Wide web services -> Application Development Features 把需要的asp.net版本勾上,然后在IIS管理器中把你的网站的应用程序池改成其他的试试,用默认的应用程序池可能不行,我就遇到了
PiKaQiuPiKaPi 2016-06-23
  • 打赏
  • 举报
回复
引用 12 楼 li616907521 的回复:
[quote=引用 11 楼 li616907521 的回复:] 这个是解决方法
http://blog.csdn.net/luozhuang/article/details/47810703[/quote] 亲测可用,感谢
zhishiheng 2016-04-29
  • 打赏
  • 举报
回复
win7 vs2012 解决方法 :删除vs2012 注册.net4.0:aspnet_regiis.exe -i 再次安装vs2012
Vict0r Chen 2016-04-13
  • 打赏
  • 举报
回复
同问,顶......!
飞天灵狐 2016-04-07
  • 打赏
  • 举报
回复
注册下先,命令自己查
rgshare 2016-04-06
  • 打赏
  • 举报
回复
引用 10 楼 boyzman1122 的回复:
为啥我装了KB3002339还是不行
我也是,最后解决了吗?
一击光头 2015-09-09
  • 打赏
  • 举报
回复
引用 11 楼 li616907521 的回复:
这个是解决方法
http://blog.csdn.net/luozhuang/article/details/47810703
一击光头 2015-09-09
  • 打赏
  • 举报
回复
这个是解决方法
boyzman1122 2015-08-06
  • 打赏
  • 举报
回复
为啥我装了KB3002339还是不行
Taiduer 2015-08-04
  • 打赏
  • 举报
回复
引用 7 楼 smileruner 的回复:
After the installation of the Microsoft .NET Framework 4.6, users may experience the following dialog box displayed in Microsoft Visual Studio when either creating new Web Site or Windows Azure project or when opening existing projects. Configuring Web http://localhost:64886/ for ASP.NET 4.5 failed. You must manually configure this site for ASP.NET 4.5 in order for the site to run correctly. 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. NOTE: Microsoft .NET Framework 4.6 may also be referred to as Microsoft .NET Framework 4.5.3 This issue may impact the following Microsoft Visual Studio versions: Visual Studio 2013, Visual Studio 2012, Visual Studio 2010 SP1 Workaround: Select “OK” when the dialog is presented. This dialog box is benign and there will be no impact to the project once the dialog box is cleared. This dialog will continue to be displayed when Web Site Project or Windows Azure Projects are created or opened until the fix has been installed on the machine. Resolution: Microsoft has published a fix for all impacted versions of Microsoft Visual Studio. Visual Studio 2013 – Download Visual Studio 2013 Update 4 For more information on the Visual Studio 2013 Update 4, please refer to: Visual Studio 2013 Update 4 KB Article 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 Visual Studio 2010 SP1 An update to address this issue for Microsoft Visual Studio 2010 SP1 has been published: KB3002340 This update is available from Windows Update To install this update directly from the Microsoft Download Center, here
通过更新 KB3002339 补丁之后 问题得到解决 谢谢smileruner
by_封爱 2015-07-31
  • 打赏
  • 举报
回复
server2012就已经不支持注册命令了 直接在控制台就可以添加就行了
smileruner 2015-07-31
  • 打赏
  • 举报
回复
After the installation of the Microsoft .NET Framework 4.6, users may experience the following dialog box displayed in Microsoft Visual Studio when either creating new Web Site or Windows Azure project or when opening existing projects. Configuring Web http://localhost:64886/ for ASP.NET 4.5 failed. You must manually configure this site for ASP.NET 4.5 in order for the site to run correctly. 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. NOTE: Microsoft .NET Framework 4.6 may also be referred to as Microsoft .NET Framework 4.5.3 This issue may impact the following Microsoft Visual Studio versions: Visual Studio 2013, Visual Studio 2012, Visual Studio 2010 SP1 Workaround: Select “OK” when the dialog is presented. This dialog box is benign and there will be no impact to the project once the dialog box is cleared. This dialog will continue to be displayed when Web Site Project or Windows Azure Projects are created or opened until the fix has been installed on the machine. Resolution: Microsoft has published a fix for all impacted versions of Microsoft Visual Studio. Visual Studio 2013 – Download Visual Studio 2013 Update 4 For more information on the Visual Studio 2013 Update 4, please refer to: Visual Studio 2013 Update 4 KB Article 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 Visual Studio 2010 SP1 An update to address this issue for Microsoft Visual Studio 2010 SP1 has been published: KB3002340 This update is available from Windows Update To install this update directly from the Microsoft Download Center, here
KENKJKJ 2015-05-13
  • 打赏
  • 举报
回复
如果确定已勾选asp.net 4.6 ,在IIS中设置网站应用程序池“DefaultAppPool” 改为“.NET v4.5 Classic”,试试,应该能解决你的问题!
  • 打赏
  • 举报
回复
2015年底等正式稳定版本出现了再来分析win10到底有什么问题。
加载更多回复(4)

17,740

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 .NET Framework
社区管理员
  • .NET Framework社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧