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 August 2nd, 2010, 08:59 AM
Registered User
 
Join Date: Jul 2010
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem Viewing Pages

Hi All,

I am using Ms Visual Studio 2008 (because I already do some programming in C#) under XP and using IE8 to teach myself ASP.NET.

My problem is that, when I try to display a page (c/F5), first the browser comes up with a blank page. If I then close this browser, another browser comes up saying 'can not display the web page'. When I compare the address in the browser (eg http://localhost:2473/Default.aspx) with the port number of the internal server in the system tray (Port 2475), the port numbers are always a few numbers different. Manually changing the address in the browser to http://localhost:2475/Default.aspx solves the problem and displays the page correctly.

How, please, can I get it to (a) not show a blank page and (b) call up the same port number as the internal server? Not fatal but very frustrating!

David
 
Old August 2nd, 2010, 10:16 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi David,

Does it help when you assign a static port number on the web site's Properties dialog and set Use Dynamic Ports to false?

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 August 3rd, 2010, 10:25 AM
Registered User
 
Join Date: Jul 2010
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Omar,

No, whatever port number I enter, it says that the port is busy.

David
 
Old August 3rd, 2010, 10:39 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Omar? Who's Omar?

Do you have security software on your machine such as anti-virus or a firewall?

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 August 6th, 2010, 04:57 AM
Registered User
 
Join Date: Jul 2010
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Imar,

Many apologies - Currently dealing with a lawyer in Jordan called Omar - confusing for a bear of small brain - explanation but not an excuse!

Yes, I have the Eset anti-virus software and, armed with your suggestion, found a reference on Google to the problem. By excluding VS2008 from the active browser filtering, the port problem is solved. Thanks for that.

However, I still receive this blank page following c/F5. Only when I close this does the page display.

Regards, David
 
Old August 6th, 2010, 05:11 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Quote:
Currently dealing with a lawyer in Jordan called Omar - confusing for a bear of small brain - explanation but not an excuse!
Haha, no problem.... ;-)

I've seen the problem you describe on a developer's machine once, but never saw if, and how, it was fixed. Google has a few reference though.

These two suggest disabling addons in Intenet Explorer:

http://connect.microsoft.com/VisualS...page-ie8-first
http://stackoverflow.com/questions/1...ick-start-with

More info in case this doesn't fix it:
http://www.google.com/#hl=en&source=...882c49a45bf057

Hope this helps,

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 August 8th, 2010, 11:04 AM
Registered User
 
Join Date: Jul 2010
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Have tried all of this without success. However, it works fine with Debug (F5) as opposed to c/F5. Probably a bit slower but time to move on. At least I have got rid of the 'wrong port number' problem.

Thanks for your suggestions.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Viewing created ASP pages on network computer bomanda ASP.NET 1.0 and 1.1 Basics 13 February 16th, 2007 07:51 AM
Viewing Data Access Pages thru internet pans HTML Code Clinic 1 February 2nd, 2005 09:57 PM
Viewing ASP pages bnorg ASP.NET 1.0 and 1.1 Basics 10 September 14th, 2003 12:35 PM
Pages not viewing properly stu9820 ASP.NET 1.0 and 1.1 Basics 2 August 21st, 2003 01:18 PM





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