Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 3.5 > BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old May 18th, 2008, 10:50 PM
Authorized User
 
Join Date: Sep 2003
Location: Orange County, CA, USA.
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to julianfraser Send a message via MSN to julianfraser Send a message via Yahoo to julianfraser
Default Getting about:blank when running code in VS 2008

I've just picked up this book after several years of putting off making the transition from Classic ASP. I'm on chapter 1 and have just created my first ASP.NET website... yay! Anyway, when I run the site (Debug --> Start without Debugging), an internet explorer window opens up with "about"blank" in the address bar. To get to the site I have to double click on the ASP.NET Development Server in the tray and click on the Root URL link.

I'm running Visual Studio 2008 on a MacBook Pro with XP MCE SP3

Any ideas what's causing this and how to fix. I'm going to get tired of this very fast otherwise!!!

Cheers,
Julian.

Reply With Quote
  #2 (permalink)  
Old May 19th, 2008, 03:05 AM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Hi Julian,

That's frustrating indeed, and not how it's supposed to be. A few things to check:

1. What is your standard default browser? IE?

2. What happens when you right-click a page in the Solution Explorer and choose View in Browser?

3. What is the standard homepage in your default browser? Is that about:blank?

4. What happens when you right-click a page in the Solution Explorer and Browse With? What settings do you get?

Finally, is this a clean VS 2008 install? Have you looked into resetting the settings to the default ones if it's not a fresh install?

Cheers,
Imar


---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of Beginning ASP.NET 3.5 : in C# and VB, ASP.NET 2.0 Instant Results and Dreamweaver MX 2004
Want to be my colleague? Then check out this post.
Reply With Quote
  #3 (permalink)  
Old May 19th, 2008, 03:02 PM
Authorized User
 
Join Date: Sep 2003
Location: Orange County, CA, USA.
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to julianfraser Send a message via MSN to julianfraser Send a message via Yahoo to julianfraser
Default

1. What is your standard default browser? IE?
Yes, IE is my default browser

2. What happens when you right-click a page in the Solution Explorer and choose View in Browser?
This opens up the page just fine, this is one step closer i suppose.

3. What is the standard homepage in your default browser? Is that about:blank?
My default homepage is http://www.google.com

4. What happens when you right-click a page in the Solution Explorer and Browse With? What settings do you get?
This opens the page fine in all browsers, IE, Firefox and Internal Browser.

Weird huh? Will this cause me problems further down the line if I can't resolve this? I'm assuming yes if I can't use the debugger. I'm new to ASP.NET and have only used Visual Studio for VB.NET apps. F5 and Ctrl-F5 are going to be crucial when it comes to compiling and debugging, correct?

Thanks Imar,
Julian.







Reply With Quote
  #4 (permalink)  
Old May 19th, 2008, 03:13 PM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Another thing to check is the following setting:

Website | Start Options.

Is "Use current page" selected?

It may get you in trouble later. While not impossible, it will be pretty frustrating if F5 doesn't get you where you want...

With regards to my question 4) below: what is set as your default browser?

If all else fails, try resetting your settings through Tools | Import and Export Settings.

Imar


---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of Beginning ASP.NET 3.5 : in C# and VB, ASP.NET 2.0 Instant Results and Dreamweaver MX 2004
Want to be my colleague? Then check out this post.
Reply With Quote
  #5 (permalink)  
Old May 19th, 2008, 03:52 PM
Authorized User
 
Join Date: Sep 2003
Location: Orange County, CA, USA.
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to julianfraser Send a message via MSN to julianfraser Send a message via Yahoo to julianfraser
Default

Website --> Start Options is set to "Use curent page"

Default browser is IE 7.0.5730.13

I reset all the setting through Tools --> Import and Export Settings, result is the same as before. Ctrl-F5 gets me about:blank

Reply With Quote
  #6 (permalink)  
Old May 19th, 2008, 03:56 PM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Very weird.

The only things I can think of are a) a software bug / installation issue in VS 2008 or b) a browser issue.

Have you tried to make a browser like Firefox your default browser in VS 2008 and see if that helps?

Otherwise, I am pretty much out of options....

Imar


---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of Beginning ASP.NET 3.5 : in C# and VB, ASP.NET 2.0 Instant Results and Dreamweaver MX 2004
Want to be my colleague? Then check out this post.
Reply With Quote
  #7 (permalink)  
Old May 19th, 2008, 04:29 PM
Authorized User
 
Join Date: Sep 2003
Location: Orange County, CA, USA.
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to julianfraser Send a message via MSN to julianfraser Send a message via Yahoo to julianfraser
Default

Thanks for your time on this Imar.

Ok so if I set Firefox as the default bowser, then Ctrl-F5 works and loads the site fine. But no go with IE still. I guess this means it's an IE browser issue.

Another quick question, my machine is running SQL Server 2005 Developer, I selected not to install the express edition when I installed Visual Studio, that's not going to affect anything right?

Thanks,
Julian.

Reply With Quote
  #8 (permalink)  
Old May 20th, 2008, 02:35 AM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

It *is* going to affect a number of things.

First of all, the Express edition uses a different security model. It has a concept called User Instances where SQL runs under your user account without much configuration. With Express, all you need to do is add a database to App_Data, hit F5 and things will work (not sure about the F5 part in your case :-) )

Additionally, by default ASP.NET has a connectionstring for a local SQL server (installed at (local)\SqlExpress) that it uses by default for features like Membership and Roles. Again, all you need to do is add a few controls to a page, hit F5 and the database will be created for you against the (local)\SqlExpress server.

When you use a different database you need to make your own configuration changes. Those are described in Chapter 18 and Appendix B.

So, all in all, I think you're much better off installing Express (which you download here: http://www.microsoft.com/sql/express) in a "side by side" mode next to your existing installation

If you want to proceed with the dev edition then you may want to keep this article handy:
http://imar.spaanjaars.com/QuickDocId.aspx?ID=395

Cheers,

Imar


---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of Beginning ASP.NET 3.5 : in C# and VB, ASP.NET 2.0 Instant Results and Dreamweaver MX 2004
Want to be my colleague? Then check out this post.
Reply With Quote
  #9 (permalink)  
Old May 20th, 2008, 02:49 AM
Authorized User
 
Join Date: Sep 2003
Location: Orange County, CA, USA.
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to julianfraser Send a message via MSN to julianfraser Send a message via Yahoo to julianfraser
Default

Thanks Imar,

I'll cross the SQL bridge when I come to it. I've been using SQL Server for a number of years with classic ASP, so I'm going to need to learn how to do it this way anyway. When I get to the chapter on SQL, I'll see if it makes sense to install express.

Thanks for all your help.

Reply With Quote
  #10 (permalink)  
Old May 20th, 2008, 02:59 AM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

You're welcome. Good luck....

Imar


---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of Beginning ASP.NET 3.5 : in C# and VB, ASP.NET 2.0 Instant Results and Dreamweaver MX 2004
Want to be my colleague? Then check out this post.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't Debug Jul-2008 code under VS2008 agemagician BOOK: Professional Microsoft Robotics Studio ISBN: 978-0-470-14107-6 1 November 7th, 2008 02:11 AM
why buy vs-2008 instead of vb-2008 jerryham VB.NET 7 September 2nd, 2008 02:39 PM
How do I write this vb 6 code to work in vb 2008? sanderson Visual Basic 2008 Essentials 3 June 10th, 2008 01:46 PM
Code not running larryg BOOK: Beginning Access VBA 3 August 18th, 2006 08:36 AM



All times are GMT -4. The time now is 08:53 AM.


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