如何轻松部署ASP.NET Web应用程序? [英] How to easily deploy ASP.NET web application?

查看:67
本文介绍了如何轻松部署ASP.NET Web应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在ASP.NET中创建了Web应用程序,我想在另一台计算机上查看此应用程序。我该怎么做?



我有什么尝试过:



我尝试点击一次发布但是没有用。

I created web application in ASP.NET and i want to view this application on another computer.How can I do this?

What I have tried:

I tries with one click publish but it did not work.

推荐答案

如果我理解正确

步骤发布!!

右键单击您的Web应用项目或网站点击发布

a对话框将显示询问如果要发布在线或本地文件夹
if i understand right
steps to publish !!
Right click your Web app Project or web site click Publish
a dialog box will show asking if you going to publish online or local folder


通常,当我进行部署时,我会部署到计算机上的本地文件系统,然后将其复制到我希望的服务器/计算机上部署到。



一旦这样做,您将需要在另一台计算机上的IIS中为Web应用程序设置虚拟控制器。在IIS中单击浏览,您应该能够看到它是否正在运行。



注意,如果您不知道如何设置虚拟目录,那么谷歌一下。 YouTube有一些视频可以引导您完成。
Typically, when I do deployments, I deploy to the Local File System on my computer and then copy it to the server/computer which I wish to deploy to.

Once you do that, you'll then need to set up a virtual directorie in IIS on the other computer for the web application. While in IIS click Browse and you should be able to see if it is running or not.

Note, if you do not know how to setup a virtual directory, then Google it. YouTube has some videos to walk you through it.


如果您要发布到托管公司服务器,请按照该主机公司提供的说明进行操作。



如果您要发布到您拥有并控制的服务器,请安装 Web Deploy 首先在服务器上[ ^ ],然后你可以使用您在发布对话框中找到的Web Deploy方法发布到它。当然,您需要对服务器具有适当的权限。
If you're publishing to a hosting company server, follow the directions supplied by that host company.

If you're publishing to a server you own and control, install Web Deploy[^] on the server first, then you can publish to it using the Web Deploy method you find in the Publish dialog. You'll, of course, need appropriate permissions to the server.


这篇关于如何轻松部署ASP.NET Web应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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