Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3
This is the forum to discuss the Wrox book Beginning ASP.NET 3.5: In C# and VB by Imar Spaanjaars; ISBN: 9780470187593
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 4th, 2009, 03:09 PM
Registered User
 
Join Date: Jan 2009
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default sudden localhost port issue

Hello,

So I'm rolling along in the book (now into chapter 13), and without me making any changes to VWD Express I suddenly run into a problem concerning the built in ASP.NET development server.

When I try to "View page in browser" I get the "Page not found" error (any page in any project). It seems that Visual Web Developer Express is sending the wrong port information to the browser...and it's usually off by 2 or 3 points. So, for example, the tray icon will say it's using port "50820" but the browser will try to open the page using port "50817".

I can open the page if I manually type in the correct port number from the tray icon into the browser address bar each time...but this is tedious...

OS: Windows Vista SP1

If this question is beyond the scope of this board my apologies and I will look elsewhere. I searched Google and tried various "fixes" that had no effect.

Last edited by ceric67; March 4th, 2009 at 03:12 PM..
 
Old March 4th, 2009, 03:49 PM
Friend of Wrox
 
Join Date: Feb 2009
Posts: 194
Thanks: 5
Thanked 3 Times in 3 Posts
Default

I also have this problem in Visual Studio 2008 but I only experience it in the wrox site project and not in any of my other projects that I am working on.

I would be interested to know the cause of this.
 
Old March 4th, 2009, 05:13 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

That's indeed very weird....

Does it help when you fix the port number on the Properties Grid for the Web Project in the Solution Explorer?

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old March 4th, 2009, 06:45 PM
Registered User
 
Join Date: Jan 2009
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Imar, your book is great by the way.

If I try to fix the port number in the solution explorer, I get a "port already in use error"!! And I can't seem to set a static port either.

Anyhow, I can work around this error till I finish your book to get things to work for now...than I may reinstall everything later. It's as if the port is in use (for some reason) then the web server switches to a nearby number...but close doesn't count in computers.

In searching Google, I found my exact problem on a Microsoft board posted a couple days ago (no it's not me).

http://connect.microsoft.com/VisualS...dbackID=419736

but Microsoft is so far clueless...I will watch that posting to see if thy come up with an answer, but I won't hold my breath....
 
Old March 4th, 2009, 06:49 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Can it be in use because the server is already running? Make sure there are no Web Server icons in your tray anymore before you assign the number.

Or, just assign a completely different number like 12345

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old March 4th, 2009, 10:42 PM
Registered User
 
Join Date: Jan 2009
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

OK, Sorry for the fuss.

After spending all day on this (when all I wanted to do is complete Chapter 13!) I think I solved my problem and finally found a fix that worked. There was a conflict with my NOD 32 Security (although I didn't make any changes in the settings).

Used to be you could set things up and they would remain the same in XP...Vista always seems to be chattering away at the hard drive paging files and "fixing" things for me...no thanks.
 
Old March 5th, 2009, 05:48 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Great, glad you figured it out....

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!





Similar Threads
Thread Thread Starter Forum Replies Last Post
localhost ongmymap ASP.NET 3.5 Basics 5 November 8th, 2008 02:09 PM
TBH - Errors and warnings all of a sudden! codewife55 BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 3 November 12th, 2006 06:58 PM
Why can I use localhost:port only? YLi .NET Web Services 3 October 23rd, 2006 12:58 PM
do not want to use localhost p2ptolu Classic ASP Databases 1 September 15th, 2005 06:03 PM
Localhost Yee Dreamweaver (all versions) 6 October 21st, 2004 09:21 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.