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

查看:232
本文介绍了如何将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:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -ir

ASP .NET 4.0:

C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -ir

运行命令提示符作为管理员避免 ...请求操作需要提升错误

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. 打开控制P. anel

  2. 程序\打开或关闭Windows功能

  3. 互联网信息服务

  4. 万维网服务

  5. 应用程序开发功能

  6. ASP.Net < ==勾选此处

  1. Open Control Panel
  2. Programs\Turn 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天全站免登陆