在个人计算机上运行ASP.NET Web应用程序以进行测试需要什么?

时间:2023-01-24 12:33:09

I'm running Windows XP SP3 and I do have the latest .NET libraries installed, as well as Visual Studio 2008. I'm also running (and would like to continue to run) Apache HTTP Server as well, if that matters.

我正在运行Windows XP SP3,我确实安装了最新的.NET库,以及Visual Studio 2008.如果重要的话,我也在运行(并且希望继续运行)Apache HTTP Server。

Perhaps someone can provide a list of software that I need and then I can look up configuration or ask here if I can't find what I need.

也许有人可以提供我需要的软件列表,然后我可以查找配置或在这里询问我是否找不到我需要的东西。

Thanks.

6 个解决方案

#1


2  

You already have everything you need to run ASP.NET applications; Visual Studio 2008 has an inbuilt web server 'Casinni' that starts up and hosts your asp.net site when you compile and run from the development environment (Press F5)

您已拥有运行ASP.NET应用程序所需的一切; Visual Studio 2008有一个内置的Web服务器“Casinni”,当您从开发环境编译和运行时,它会启动并托管您的asp.net站点(按F5)

If you have the professional version of XP you can install IIS 5 via Control Panel -> Add/Remove Windows Components and use that to host your website instead.

如果你有专业版的XP,你可以通过控制面板安装IIS 5 - >添加/删除Windows组件,并使用它来托管你的网站。

To configure vs.net to use IIS instead, In Solution Explorer, right-click the name of the Web site for which you want to specify a Web server, and then click Property Pages.

要将vs.net配置为使用IIS,请在“解决方案资源管理器”中,右键单击要为其指定Web服务器的网站的名称,然后单击“属性页”。

In the Property Pages dialog box, click the Start Options tab. Under Server, click use custom server. In the base URL box, type the URL that VS.NET should start when running the current Web site.

在“属性页”对话框中,单击“开始选项”选项卡。在服务器下,单击使用自定义服务器在基本URL框中,键入VS.NET在运行当前网站时应启动的URL。

#2


3  

If you have Visual Studio 2008 just create new website project. VS has got a build-in web server for debug purposes.

如果您有Visual Studio 2008,只需创建新的网站项目。 VS有一个内置的Web服务器用于调试目的。

#3


1  

You don't need anything else. Visual Studio will host your application and let you step through it.

你不需要任何其他东西。 Visual Studio将托管您的应用程序,让您逐步完成它。

#4


1  

Since you have Visual Studio 2008, why not just use the built in Casini browser? I use that for nearly all of my development & testing - and have not come across any major issues with it.

由于您拥有Visual Studio 2008,为什么不使用内置的Casini浏览器?我几乎用于所有的开发和测试 - 并没有遇到任何重大问题。

#5


1  

If you want to run the projects outside of the Visual Studio environment, you'll need IIS as well. You can install it from the Windows Components section of Add/Remove Programs. Other than that, you should be set.

如果要在Visual Studio环境之外运行项目,则还需要IIS。您可以从“添加/删除程序”的“Windows组件”部分安装它。除此之外,你应该被设置。

#6


0  

Press F5 in Visual Studio.

在Visual Studio中按F5。

#1


2  

You already have everything you need to run ASP.NET applications; Visual Studio 2008 has an inbuilt web server 'Casinni' that starts up and hosts your asp.net site when you compile and run from the development environment (Press F5)

您已拥有运行ASP.NET应用程序所需的一切; Visual Studio 2008有一个内置的Web服务器“Casinni”,当您从开发环境编译和运行时,它会启动并托管您的asp.net站点(按F5)

If you have the professional version of XP you can install IIS 5 via Control Panel -> Add/Remove Windows Components and use that to host your website instead.

如果你有专业版的XP,你可以通过控制面板安装IIS 5 - >添加/删除Windows组件,并使用它来托管你的网站。

To configure vs.net to use IIS instead, In Solution Explorer, right-click the name of the Web site for which you want to specify a Web server, and then click Property Pages.

要将vs.net配置为使用IIS,请在“解决方案资源管理器”中,右键单击要为其指定Web服务器的网站的名称,然后单击“属性页”。

In the Property Pages dialog box, click the Start Options tab. Under Server, click use custom server. In the base URL box, type the URL that VS.NET should start when running the current Web site.

在“属性页”对话框中,单击“开始选项”选项卡。在服务器下,单击使用自定义服务器在基本URL框中,键入VS.NET在运行当前网站时应启动的URL。

#2


3  

If you have Visual Studio 2008 just create new website project. VS has got a build-in web server for debug purposes.

如果您有Visual Studio 2008,只需创建新的网站项目。 VS有一个内置的Web服务器用于调试目的。

#3


1  

You don't need anything else. Visual Studio will host your application and let you step through it.

你不需要任何其他东西。 Visual Studio将托管您的应用程序,让您逐步完成它。

#4


1  

Since you have Visual Studio 2008, why not just use the built in Casini browser? I use that for nearly all of my development & testing - and have not come across any major issues with it.

由于您拥有Visual Studio 2008,为什么不使用内置的Casini浏览器?我几乎用于所有的开发和测试 - 并没有遇到任何重大问题。

#5


1  

If you want to run the projects outside of the Visual Studio environment, you'll need IIS as well. You can install it from the Windows Components section of Add/Remove Programs. Other than that, you should be set.

如果要在Visual Studio环境之外运行项目,则还需要IIS。您可以从“添加/删除程序”的“Windows组件”部分安装它。除此之外,你应该被设置。

#6


0  

Press F5 in Visual Studio.

在Visual Studio中按F5。