ASP.NET 4.5 尚未在 Web 服务器上注册 [英] ASP.NET 4.5 has not been registered on the Web server
问题描述
在我的 Win 7 开发机器上,为了使用 SQL Express 实例而不是默认安装的 localDB.我在 MVC 4 项目属性页面(Web 选项卡)中取消选中使用 IIS Express",然后出现以下错误:
In my Win 7 development machine, and in order to use SQL Express instance instead of the localDB installed by default. I unchecked "Use IIS Express" in my MVC 4 project properties page (Web tab), then I got the following error:
ASP.NET 4.5 尚未在 Web 服务器上注册.您需要为 ASP.NET 4.5 手动配置您的 Web 服务器,以便您的站点正确运行.
我确认 ASP.NET 已在 IIS 功能内激活.
I verified that ASP.NET is activated within the IIS features.
请问有什么办法可以解决这个问题?
Please what could be done to resolve this?
推荐答案
也许您必须在 Visual Studio Tools 命令提示符下执行以下操作:
Maybe you have to execute the following in the Visual Studio Tools command prompt:
aspnet_regiis -i
您可以阅读有关 ASP.NET IIS 注册工具 (Aspnet_regiis.exe) 的更多信息此处.
You can read more about the ASP.NET IIS Registration Tool (Aspnet_regiis.exe) here.
这篇关于ASP.NET 4.5 尚未在 Web 服务器上注册的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!