简体   繁体   English

使用 .NET 4.0 配置 ASP.NET

[英]Configure ASP.NET with .NET 4.0

I am using visual studio 2012. When I open asp.net web form application the following message is showing Everytime:我正在使用 Visual Studio 2012。当我打开 asp.net Web 表单应用程序时,每次都显示以下消息:

Configuring web http://"localhost":54229/ for ASP.NET 4.0 failed .You must manually configure this site for ASP.NET 4.0 in order for the site to run correctly.为 ASP.NET 4.0配置 web http://"localhost":54229/ 失败。您必须为 ASP.NET 4.0手动配置此站点,以便站点正确运行。 ASP.NET 4.0 has not been registered on the Web server. ASP.NET 4.0 尚未在 Web 服务器上注册。 You need to manually configure your Web server for ASP.NET 4.0 in order for you site to run correctly.您需要为 ASP.NET 4.0 手动配置您的 Web 服务器,以便您的站点正确运行。
How to get free of this message?如何摆脱这个消息?

Just to satisfy my OCD and give an answer, the link provided by @krlzlx does indeed solve the problem.只是为了满足我的强迫症并给出答案,@krlzlx 提供的链接确实解决了问题。 According to the [current] top voted answer of Asp.net 4.0 has not been registered , run根据Asp.net 4.0尚未注册的[当前]最高投票答案,运行

aspnet_regiis -i

as admin from the Developer Command Prompt for Visual Studio.作为管理员从 Visual Studio 的开发人员命令提示符。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM