在另一台计算机上部署asp.net项目 [英] deploy asp.net project on another computer

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

问题描述

刚开始我在ASP初学者,和havign一些困难部署我的第一个应用程序。

Just to begin I am a beginner in ASP, and havign some difficulty in deploying my first application.

我在做一个VS2008 asp.net项目,我WS试图将其部署到另一台机器上,并以下是我做的步骤:结果
右点击网站并发布设置loaction到c:\\的Inetpub \\ wwwroot文件并粘贴我的应用程序到这个文件夹结果
然后我去控制面板 - 管理工具 - IIS和有这表明,我复制然后去其属性的网站添加的文档,设置ASP> NET版本,它默认为空。然后编辑的配置和验证下改变了它的方式无法比拟的。搜索结果

I made a asp.net project in VS2008, and I ws trying to deploy it on another machine and following are the steps that I did:
right clicked on website and published set loaction to c:\inetpub\wwwroot and pasted my app to this folder.
Then I went to control Panel- admin tool- IIS and there it showed the website which I copied then went to its properties added documents, set ASP>NET version, it was blank by default. Then edited the configuration and under authentication changed its mode to none.

,然后当我依次点击IIS中的应用程序和浏览这表明期望的输出,但我需要知道如何在浏览器中打开相同的应用程序。

And then when I cick on the app in IIS and browse it showed the desired output, but I need to know how to open the same app in browser.

感谢

推荐答案

如果我正确地理解这一点 - 它不依赖于如何网站已在IIS中设置完成。在它的最简单的将是

If I've understood this correctly - it does depend on how the website has been set up in IIS. At it's most simple it would be

在默认网站

http://[external IP of webserver]/default.aspx

由于该网站下一个虚拟

As a virtual under the website

http://[external IP of webserver]/[virtualName]/default.aspx

假设有一个名为Default.aspx的(插入自己的)

Assuming there is a file called default.aspx (insert your own)

如果Default.aspx的被指定为缺省文档站点

if default.aspx is specified as a default document for the site

http://[external IP of webserver]
http://[external IP of webserver]/[virtualName]

如果您使用绑定到特定的IP和端口,或(看在IIS中,在捆扎链接左手边 - 见下面的图片)

if you are using binding to a specific IP and or port (look in IIS, left handside at the binding link - see image below)

http://hostname: optionalpost

道歉,如果我误解了

修改

要查看该网站是否在所有活动和获得的外部URL是什么,然后在IIS的左侧会浏览网站更好的主意。单击此检查网站是否出现在所有。

To check whether the site is active at all and to get a better idea of what the external URL is then on the left hand side of IIS will be browse to website. Click this to check whether the site comes up at all.

如果它不会那么URL应该是显而易见的。这可能是一个具有主机头即看起来像一个正常的URL即。

If it does then the URL should be obvious. It could be one with a host header i.e. looks like a normal URL i.e.

http://mytestsite.com

如果是在这种格式,那么你可能无法从外部浏览如果无法解决此hostheader的机器的IP。为了解决这个问题,然后编辑您的主机文件,并从URL添加映射到箱子的外部IP。

If it is in this format then you may not be able to browse externally if you can't resolve this hostheader to the IP of the box. To get around this then edit you host file and add a mapping from the url to the external IP of the box.

Host头是在Windows 7下(或窗口通常我认为)

Host header is at following in windows 7 (or windows generally i think)

C:\Windows\System32\drivers\etc\hosts

编辑前,请备份这个文件以

Please back this file up before editing it

这篇关于在另一台计算机上部署asp.net项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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