如何在本地运行ASP.NET C#Web应用程序? [英] How to run ASP.NET C# web application locally?
问题描述
有关的Web应用程序,我使用ASP.NET C#(OS-Windows7中,.NET 4)和任务完成。但我不知道如何在Windows7的本地运行,以及在服务器2008(.NET 4和IIS安装在2008服务器)。我必须在这两个在洗车台运行。因此,任何帮助,请。非常感谢。
For a web application I am using ASP.NET C# (OS- Windows7, .NET 4) and the task has done. But I don't know how to run it locally in Windows7 as well as in Server 2008(.NET 4 and IIS installed in server 2008). And I have to run it in both the platfrom. So any help please. Thanks a lot.
推荐答案
如果您已经安装的Win 7的机器上的IIS 7,那么:
If you have IIS 7 installed on your Win 7 machine, then:
- 打开你的VS.NET项目
- 右键在Solution Explorer中单击项目的节点,然后选择属性
- 切换到网络选项卡。
- 选择电台使用本地IIS Web服务器
- 单击创建虚拟目录按钮
这需要让你的应用程序中使用IIS运行的照顾。您也可以开发/调试ASP.NET应用程序是这样的。
That takes care of getting your application to run using IIS. You can also develop/debug ASP.NET applications like this.
至于,部署ASP.NET应用程序,确保所有pre-必备安装后。你需要使用IIS管理器来创建一个网站,该网站关联到一个应用程序池。
As regards, deploying your ASP.NET application, after making sure all pre-requisites are installed. You'll need to use IIS Manager to create a website and associate that website to an application pool.
这篇关于如何在本地运行ASP.NET C#Web应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!