Re: .Net 2.0 website is running on a different port?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Are you working from a subdirectory ?

If so, you should set the URL to http://localhost/yoursubdir/

You might also want to check Scott Guthrie's tip on running
a Root ?/? Site with the VS/VWD 2005 Local Web Server :

http://weblogs.asp.net/scottgu/archive/2005/11/21/431138.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/
===================================
"TS" <manofsteele1@xxxxxxxxxxxxx> wrote in message news:O57ALXeAHHA.4060@xxxxxxxxxxxxxxxxxxxxxxx
thanks, but when i set it to Http://localhost, it won't start in the debugger and when i start
without debugging, it doesn't find the site. i guess i'd probably somehow do a publish which would
publish my site to IIS??? then it would work?

is it more efficient to run the site using the local dev server?

thanks

"Juan T. Llibre" <nomailreplies@xxxxxxxxxxx> wrote in message
news:OSPKR1dAHHA.1012@xxxxxxxxxxxxxxxxxxxxxxx
re:
Can i change it to use port 80 and will it work?


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" <manofsteele1@xxxxxxxxxxxxx> wrote in message
news:OLG%23pmdAHHA.4060@xxxxxxxxxxxxxxxxxxxxxxx
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







.



Relevant Pages