如何将 ASP.NET 2.0 注册到 Web 服务器(IIS7)? [英] How to register ASP.NET 2.0 to web server(IIS7)?

查看:15
本文介绍了如何将 ASP.NET 2.0 注册到 Web 服务器(IIS7)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建了一个网页应用程序,但是当我在 Visual Studio 2008 中打开它时,它会显示:

I have a web-page application already created, but when I open it in visual studio 2008, it says there that:

ASP.NET 2.0 尚未在 Web 服务器上注册.你需要为 ASP.NET 2.0 手动配置您的 Web 服务器,以便您的网站正常运行.

ASP.NET 2.0 has not been registered on the Web Server. You need to manually configure you Web server for ASP.NET 2.0 in order for your site to run correctly.

我正在使用 asp.net 2.0、IIS7 并在 vista home premium 上运行.

I'm using asp.net 2.0, IIS7 and running on vista home premium.

如何将 ASP.NET 2.0 注册到我的 Web 服务器(IIS7)?

How to register ASP.NET 2.0 to my web server(IIS7)?

推荐答案

ASP .NET 2.0:

C:WindowsMicrosoft.NETFrameworkv2.0.50727aspnet_regiis.exe -ir

ASP .NET 4.0:

C:WindowsMicrosoft.NETFrameworkv4.0.30319aspnet_regiis.exe -ir

以管理员身份运行命令提示符以避免 ...requested operation requires elevation 错误

Run Command Prompt as Administrator to avoid the ...requested operation requires elevation error

aspnet_regiis.exe 不应再与 IIS7 一起使用来安装 ASP.NET

aspnet_regiis.exe should no longer be used with IIS7 to install ASP.NET

  1. 打开控制面板
  2. 程序打开或关闭 Windows 功能
  3. 互联网信息服务
  4. 万维网服务
  5. 应用程序开发功能
  6. ASP.Net <== 在此处打勾
  1. Open Control Panel
  2. ProgramsTurn Windows Features on or off
  3. Internet Information Services
  4. World Wide Web Services
  5. Application development Features
  6. ASP.Net <== check mark here

这篇关于如何将 ASP.NET 2.0 注册到 Web 服务器(IIS7)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆