VS2008 - Localhost调试... [英] VS2008 - Localhost debug ...

查看:121
本文介绍了VS2008 - Localhost调试...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近升级到VS 2008并尝试调试Web应用程序。


当我启动应用程序时,网址就像

http:// localhost:nnn / project_name / default.aspx

这是新的,导致我的网络失败,因为在网址中嵌入了project_name




如何获取网址?如

http:// localhost:nnnn / default.aspx


谢谢...

Recently upgraded to VS 2008 and trying to debug a web application.

When I start the application the url is something like

http://localhost:nnn/project_name/default.aspx

This is new and causes my web to fail because of the project_name embedded
in the url.

How do I get the url to be like

http://localhost:nnnn/default.aspx ?

Thanks...

推荐答案

" Michael Tissington" < mt ********* @ newsgroup.nospamwrote in message

news:%2 **************** @ TK2MSFTNGP03.phx .gbl ...
"Michael Tissington" <mt*********@newsgroup.nospamwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...

最近升级到VS 2008并尝试调试Web应用程序。


当我启动时应用网址类似于

http:// localhost: nnn / project_name / default.aspx


这是新的,导致我的网络失败,因为url中嵌入了project_name

。 br />

如何获得网址

http:// localhost:nnnn / default.aspx



我不知道如何制作开发Web服务器为一个项目提供服务。

它的根。


我倾向于通过制作
来寻求使应用程序在两种情况下都能正常工作的方法
使用〜/ prefixed ur ls应用程序的绝对路径是否需要

并使用相对URL合理。


或者您可以使用IIS进行调试,只需要附加调试托管代码的适当过程。

-

Anthony Jones - MVP ASP / ASP.NET


I don''t know of a way to make the development web server serve a project as
its root.

I would tend to seek ways to make the app work in both scenarios by making
use of ~/ prefixed urls where an absolute path in to the application is
needed and using relative URLs where reasonable.

Alternatively you can use IIS for debugging you just need to attach to the
appropriate process to debug managed code.
--
Anthony Jones - MVP ASP/ASP.NET


re:

!如何让网址像

http:// localhost:nnnn / default.aspx

Michael。


在您网站的项目解决方案资源管理器中,突出显示项目的名称,

右键单击它并选择属性页。从下拉菜单中选择。


然后,选择开始网址。单选按钮,并写入:texbox中的 http:// localhost /

确定退出该对话框...并右键单击default.aspx,然后单击在浏览器中查看。


URL应具有您想要的格式: http:// localhost:nnnn / default.aspx



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/

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

" Michael Tissington" < mt ********* @ newsgroup.nospamwrote in message news:%2 **************** @ TK2MSFTNGP03.phx.gbl ...
re:
!How do I get the url to be like
!http://localhost:nnnn/default.aspx ?

Hi, Michael.

In your Website''s project''s Solution Explorer, highlight the Project''s name,
right-click it and select "Property Pages" from the dropdown menu.

Then, selct the "Start URL" radio button, and write : http://localhost/ in the texbox.
OK out of that dialog...and right-click default.aspx, and then "View in browser".

The URL should have the format you want : http://localhost:nnnn/default.aspx


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/
======================================
"Michael Tissington" <mt*********@newsgroup.nospamwrote in message news:%2****************@TK2MSFTNGP03.phx.gbl...

最近升级到VS 2008并尝试调试Web应用程序。


当我启动应用程序时,url就像是

http:// localhost:nnn / project_name / default.aspx


这是新的,导致我的网络失败,因为url中嵌入了project_name。


如何获得网址是:

http:// localhost:nnnn / default。 aspx


谢谢...
Recently upgraded to VS 2008 and trying to debug a web application.

When I start the application the url is something like

http://localhost:nnn/project_name/default.aspx

This is new and causes my web to fail because of the project_name embedded in the url.

How do I get the url to be like

http://localhost:nnnn/default.aspx ?

Thanks...



re:

!选择物业页面从下拉菜单中选择。

!然后,选择开始网址。单选按钮


应该有一个中间步骤:


选择开始选项在左侧菜单中,如果属性页面没有默认值。


*然后*您可以选择开始网址。单选按钮。


对不起,如果我不够清楚。

无论如何,这就是你需要做的全部。


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/

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

Juan T. Llibre ; < no *********** @ nowhere.com在消息新闻中写道:%2 **************** @ TK2MSFTNGP02.phx.gbl ...
re:
!select "Property Pages" from the dropdown menu.
!Then, select the "Start URL" radio button

There should have been an intermediate step :

Select "Start Options" in the left menu, if the Property Pages don''t default to it.

*Then* you can select the "Start URL" radio button.

Sorry if I wan''t clear enough.
In any case, that''s all you need to do.

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/
======================================
"Juan T. Llibre" <no***********@nowhere.comwrote in message news:%2****************@TK2MSFTNGP02.phx.gbl...

re:

!如何让网址像

http:// localhost:nnnn / default.aspx


迈克尔。


在您网站的项目'解决方案资源管理器中,突出显示项目的名称,

右键单击它选择属性页从下拉菜单中选择。


然后,选择开始网址。单选按钮,并写入:texbox中的 http:// localhost /

确定退出该对话框...并右键单击default.aspx,然后单击在浏览器中查看。


URL应具有您想要的格式: http:// localhost:nnnn / default.aspx



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/

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

" Michael Tissington" < mt ********* @ newsgroup.nospamwrote in message news:%2 **************** @ TK2MSFTNGP03.phx.gbl ...
re:
!How do I get the url to be like
!http://localhost:nnnn/default.aspx ?

Hi, Michael.

In your Website''s project''s Solution Explorer, highlight the Project''s name,
right-click it and select "Property Pages" from the dropdown menu.

Then, selct the "Start URL" radio button, and write : http://localhost/ in the texbox.
OK out of that dialog...and right-click default.aspx, and then "View in browser".

The URL should have the format you want : http://localhost:nnnn/default.aspx


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/
======================================
"Michael Tissington" <mt*********@newsgroup.nospamwrote in message news:%2****************@TK2MSFTNGP03.phx.gbl...

>最近升级到VS 2008并尝试调试Web应用程序。

当我启动应用程序时,url就像是

http:// localhost:nnn / project_name / default.aspx

这是新的,导致我的网络失败,因为url中嵌入了project_name。

如何让网址变得像

http:// localhost:nnnn / default.aspx

谢谢...
>Recently upgraded to VS 2008 and trying to debug a web application.

When I start the application the url is something like

http://localhost:nnn/project_name/default.aspx

This is new and causes my web to fail because of the project_name embedded in the url.

How do I get the url to be like

http://localhost:nnnn/default.aspx ?

Thanks...




这篇关于VS2008 - Localhost调试...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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