简体   繁体   English

使用IIS在localhost上部署WebApplication

[英]Deploy WebApplication on localhost using IIS

I am using Visual Studio 2010, Windows 7 and IIS. 我正在使用Visual Studio 2010,Windows 7和IIS。 I have written a small WebApplication and I want to publish the WebApplication in the localhost. 我已经编写了一个小型WebApplication,并且想要在本地主机中发布WebApplication。 So I click on the project in Visual Studio => Publish => choose File Sytem => Local IIS. 所以我在Visual Studio中单击项目=>发布=>选择“文件系统=>本地IIS”。 After that, I get an error: 之后,我得到一个错误:

To access local IIS Web sites, you must install the following IIS components: 若要访问本地IIS网站,必须安装以下IIS组件:

  IIS 6 Metabase and IIS 6 Configuration Compatibility ASP.NET 

In addition, you must run Visual Studio in the context of an administrator account. 此外,您必须在管理员帐户的上下文中运行Visual Studio。

For more information, Press F1. 有关更多信息,请按F1。

This topic is new for me, so I am a beginner. 这个主题对我来说是新的,所以我是一个初学者。 What exactly must I do to solve this error? 我究竟该怎么做才能解决此错误? Please help me. 请帮我。 :( :(

Thanks in advance! 提前致谢!

Start -> Control Panel -> Programs -> Programs and Features -> Turn Windows features On Or Off -> IIS -> Web Management tools -> IIS 6 Management Compatibility 开始->控制面板->程序->程序和功能->打开或关闭Windows功能-> IIS-> Web管理工具-> IIS 6管理兼容性

Woot! 活泉!

I believe you need more rights on your development box. 我相信您需要在开发盒中拥有更多权限。 Are you in the administrator's group? 您在管理员组中吗?

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

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