如何在目标计算机中运行asp.net项目 [英] how do run asp.net project in destination computer

查看:73
本文介绍了如何在目标计算机中运行asp.net项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Visual Studio 2010中使用C#语言创建了sap.net项目.
...
现在....在其他计算机上运行它需要什么?

以及如何在浏览器上运行主页(main.aspx).

我想要一种简单的方法,并通过单击Main.aspx在所有计算机上工作

应该安装哪个版本的IIS?

请帮助我...

非常感谢

i created sap.net project with c# language in visual studio 2010
...
now .... for run it in other computer what is need ?

and how do run main page (main.aspx) on browsers .

i want way(s) that easy and work on all computer by Click on Main.aspx

which version of IIS Should be Install ?

please help me ...

thanks a lot

推荐答案

要在另一台PC上运行asp.net Web应用程序,您应该:

1-在目标PC上安装IIS(IIS> = 5.0应该可以)
2-安装.NET Framework 4.0(因为您使用Visual Studio 2010创建项目,所以默认的.NET Framework是4.0,如果您的Web应用程序使用.NET 2.0,则只需要安装.NET Framework 2.0)
3-打开命令行并运行以下命令
cd c:\ windows \ Microsoft.NET \ Framework \ v4.0.30319
aspnet_regiis -i//此命令可确保将.NET 4.0安装到IIS中
4-在IIS中创建您的虚拟Web应用程序
5- ....希望对您有帮助,祝您好运:)
To run asp.net web application in another PC, you should:

1- install IIS on destination PC (IIS >= 5.0 should be fine)
2- install .NET Framework 4.0 (because you use visual studio 2010 create project, so default .NET framework is 4.0, if your web application use .NET 2.0, you only need .NET framework 2.0 is installed)
3- open command line and run following command
cd c:\windows\Microsoft.NET\Framework\v4.0.30319
aspnet_regiis -i // this command to make sure .NET 4.0 is installed into IIS
4- create your virtual web application in IIS
5- .... hope help and good luck :)


我认为您很困惑.这个想法是永远不要将您的Web应用程序分发到不同的计算机上,而是将其设置在服务器上,以便任何计算机都可以浏览到该网站并查看您的Web应用程序.您也可以通过本地网络执行此操作,只需将页面托管在服务器上,人们就可以浏览到该页面.
I think you''re very confused. The idea is NEVER to distribute your web app to different computers, it''s to set it up on a server, so that any computer can browse to the website and view your web app. You can also do this over a local network, just get the page hosted on a server, and people will be able to browse to it.


这篇关于如何在目标计算机中运行asp.net项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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