.Net 2.0网站在不同的端口上运行? [英] .Net 2.0 website is running on a different port?

查看:59
本文介绍了.Net 2.0网站在不同的端口上运行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚注意到我在VS 2005中创建的网站运行的是与默认端口不同的

端口。我看到它在本地Web服务器上运行,并且

我创建的网站也不在IIS中。


我的水晶报告看起来很奇怪,因为它试图根据当前网站运行

运行来显示来自

crystalreportviewers10虚拟目录的图像,在这种情况下是localhost:1169,但实际上是

crystalreportviewers10虚拟目录仅仅是本地主机。


在这种情况下我可以做些什么来使我的图像出现?


我可以更改它以使用端口80并且它会工作吗?


感谢

i just noticed the website i created in VS 2005 is running on a different
port than the default. I see that it is running on the local web server, and
also that the website i created isn''t in IIS.

My crystal report looks weird because it is trying to show images from the
crystalreportviewers10 virtual directory based on the current website
running, which in this case is localhost:1169, but actuall the
crystalreportviewers10 virtual directory is off of just localhost.

What can I do in this situation to make my images to appear?

Can i change it to use port 80 and will it work?

thanks

推荐答案

据我所知,在VS 2005中,网站项目是在一个内置的Web服务器上运行的,并且在它们被发布之前不会进入IIS。


我不确定你是否可以在开发它的同时将它发送到IIS,我猜你可以继续每隔一段时间发布一次就可以查看它,它很漂亮

快速的过程。但我觉得你可以做一些改变(通过

下载并从MS安装一些附加到VS 2005),这将允许你进行网站开发。在VS2005中的VS2003风格。试试

谷歌搜索(抱歉,我不能更具体)。


问候,

V


11月7日上午12:33,TS < manofstee ... @nospam.nospamwrote:
As far as I know, in VS 2005, the website projects are run on an
in-built web server and do not go to IIS till they are "Published".

I am not sure if you can send it to IIS while still developing it, I
guess you can keep publishing every so often to view it, its pretty
fast process. But I have a feeling that you can make some changes (by
downloading and installing some add-on to VS 2005 from MS) that will
allow you to do website development in VS2005 in VS2003 style. Try
googling for it (sorry, I couldn''t be more specific).

Regards,
V

On Nov 7, 12:33 am, "TS" <manofstee...@nospam.nospamwrote:

i刚刚注意到我在VS 2005中创建的网站运行在另一个

端口比默认值。我看到它在本地Web服务器上运行,并且

我创建的网站也不在IIS中。


我的水晶报告看起来很奇怪,因为它试图根据当前网站运行

运行来显示来自

crystalreportviewers10虚拟目录的图像,在这种情况下是localhost:1169,但实际上是

crystalreportviewers10虚拟目录仅仅是本地主机。


在这种情况下我可以做些什么来使我的图像出现?


我可以更改它以使用端口80并且它会起作用吗?


感谢
i just noticed the website i created in VS 2005 is running on a different
port than the default. I see that it is running on the local web server, and
also that the website i created isn''t in IIS.

My crystal report looks weird because it is trying to show images from the
crystalreportviewers10 virtual directory based on the current website
running, which in this case is localhost:1169, but actuall the
crystalreportviewers10 virtual directory is off of just localhost.

What can I do in this situation to make my images to appear?

Can i change it to use port 80 and will it work?

thanks


re:
re:

我可以将其更改为使用端口80并且它会工作吗?
Can i change it to use port 80 and will it work?



要指定网站的Web服务器,请在解决方案资源管理器中打开您的本地网站和

,右键单击该名称您要为其指定Web服务器的网站,然后单击属性页。

在属性页对话框中,单击开始选项选项卡。 br />
在服务器下,单击使用自定义服务器。

在基本URL框中,键入Visual Web Developer / VS 2005

应在何时启动的URL运行当前的网站。您可以使用localhost。

从那时起,VS.NET IDE将不会使用内部Web服务器,

但是将使用IIS打开您的页面,即如果您正在使用default.aspx,

它将打开为: http ://localhost/default.aspx


默认情况下将使用端口80


这应该摆脱* all *您的网址引用

问题,无需解决方法。


Juan T. Llibre,asp.net MVP

asp.net faq : http://asp.net.do/faq/

foros de asp.net,en espa?ol: http:// asp。 net.do/foros/

================================ ===


TS < ma ********** @ nospam.nospamwrote in message news:OL **************** @ TK2MSFTNGP03.phx.gbl ...


To specify the Web server for a Web site, open your local website and,
in the Solution Explorer, right-click the name of the Web site for which you
want to specify a Web server, and then click Property Pages.
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 Visual Web Developer / VS 2005
should start when running the current Web site. You can use localhost.
From that point on, the VS.NET IDE will not use the internal web server,
but will use IIS to open your pages, i.e., if you are working on default.aspx,
it will be opened as : http://localhost/default.aspx

That will use port 80 by default

That should get rid of *all* your URL referencing
problems without requiring workarounds.

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espa?ol : http://asp.net.do/foros/
===================================

"TS" <ma**********@nospam.nospamwrote in message news:OL****************@TK2MSFTNGP03.phx.gbl...


>我刚刚注意到我在VS 2005中创建的网站运行在与默认端口不同的端口上。我看到它在本地Web服务器上运行,而且我创建的网站也不在IIS中。


我的水晶报告看起来很奇怪,因为它是试图显示来自crystalreportviewers10的图像

基于当前网站运行的虚拟目录,在这种情况下是localhost:1169,但

实际上crystalreportviewers10虚拟目录是关闭的只是localhost。


在这种情况下我可以做些什么才能让我的图像出现?


我可以将它更改为使用端口80和会不会有用?


谢谢
>i just noticed the website i created in VS 2005 is running on a different port than the default. I
see that it is running on the local web server, and also that the website i created isn''t in IIS.

My crystal report looks weird because it is trying to show images from the crystalreportviewers10
virtual directory based on the current website running, which in this case is localhost:1169, but
actuall the crystalreportviewers10 virtual directory is off of just localhost.

What can I do in this situation to make my images to appear?

Can i change it to use port 80 and will it work?

thanks






TS写道:
Hi,

TS wrote:

i刚刚注意到我在VS 2005中创建的网站运行在与默认值不同的

端口上。我看到它在本地Web服务器上运行,并且

我创建的网站也不在IIS中。


我的水晶报告看起来很奇怪,因为它试图根据当前网站运行

运行来显示来自

crystalreportviewers10虚拟目录的图像,在这种情况下是localhost:1169,但实际上是

crystalreportviewers10虚拟目录仅仅是本地主机。


在这种情况下我可以做些什么来使我的图像出现?


我可以更改它以使用端口80并且它会起作用吗?


谢谢
i just noticed the website i created in VS 2005 is running on a different
port than the default. I see that it is running on the local web server, and
also that the website i created isn''t in IIS.

My crystal report looks weird because it is trying to show images from the
crystalreportviewers10 virtual directory based on the current website
running, which in this case is localhost:1169, but actuall the
crystalreportviewers10 virtual directory is off of just localhost.

What can I do in this situation to make my images to appear?

Can i change it to use port 80 and will it work?

thanks



Studio 2005附带一个集成的Web服务器,在开发期间仅用于
。网址变为

http:// localhost:< port> /< web application>。这只是为了方便,

使开发更容易。如果您在开发期间要求您的应用程序在

IIS上运行,您可以使用项目属性,选项卡

Web。选择IIS作为你的服务器。


HTH,

Laurent

-

Laurent Bugnion ,GalaSoft

软件工程: http://www.galasoft-LB .ch

私人/马来西亚: http:// mypage.bluewin.ch/lbugnion

支持加尔各答的儿童: http://www.calcutta-espoir.ch

Studio 2005 comes with an integrated web server, which is used only
during development time. The web address becomes
http://localhost:<port>/<web application>. This is only for convenience,
to make development easier. If you require your application to run on
IIS also during development, you can use the project properties, tab
"Web" to select IIS as your server.

HTH,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
Private/Malaysia: http://mypage.bluewin.ch/lbugnion
Support children in Calcutta: http://www.calcutta-espoir.ch


这篇关于.Net 2.0网站在不同的端口上运行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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