Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 4 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4: in C# and VB by Imar Spaanjaars; ISBN: 9780470502211
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4 : in C# and VB 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 January 23rd, 2012, 09:20 PM
Friend of Wrox
 
Join Date: May 2011
Posts: 411
Thanks: 13
Thanked 7 Times in 7 Posts
Default Compile Error Message

on the examples on page 289-91 I get the following Error Message:

Error 1 'ASP.controls_banner_ascx' does not contain a definition for 'NavigateUrl' and no extension method 'NavigateUrl' accepting a first argument of type 'ASP.controls_banner_ascx' could be found (are you missing a using directive or an assembly reference?) C:\Wrox Beginning ASP.NET4.0\Source\Chapter 07\About\AboutUs.aspx.cs 17 19 C:\...\Chapter 07\
 
Old January 23rd, 2012, 09:30 PM
Friend of Wrox
 
Join Date: May 2011
Posts: 411
Thanks: 13
Thanked 7 Times in 7 Posts
Default I fixed this problem

I had to recompile and then I tried to refresh the project folder and that didn't work, but then I refreshed the controls folder in the project explorer and then I recompiled the application and it took it. Strange!
 
Old January 23rd, 2012, 09:36 PM
Friend of Wrox
 
Join Date: May 2011
Posts: 411
Thanks: 13
Thanked 7 Times in 7 Posts
Default What I am not understanding

What I am not understanding, is why do you have to recompile and refresh the controls folder in the project explorer before it will compile properly and run? Is there some kind of trick that is needed to be learned here?
 
Old January 27th, 2012, 08:47 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

>> Is there some kind of trick that is needed to be learned here?

Not that I know of. This seems to be an issue / bug in Visual Studio. Typically, rebuilding or restarting Visual Studio fixes it for me.

Cheers,

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 January 27th, 2012, 11:41 AM
Friend of Wrox
 
Join Date: May 2011
Posts: 411
Thanks: 13
Thanked 7 Times in 7 Posts
Default Service Pack Solution.

I would have thought that the service pack for visual studio 2010 would have knocked this bug out of the situation. But I guess I was wrong.
 
Old January 27th, 2012, 11:42 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

If nobody registers it, Microsoft doesn't know of it and won't be able to fix it.... ;-)

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 January 27th, 2012, 11:52 AM
Friend of Wrox
 
Join Date: May 2011
Posts: 411
Thanks: 13
Thanked 7 Times in 7 Posts
Default Send it in

Quote:
Originally Posted by Imar View Post
If nobody registers it, Microsoft doesn't know of it and won't be able to fix it.... ;-)

Imar
Maybe some enterprising fellow or person on this developers forum could forward in the findings on this particular bug from this string and get a gold star and an "ata-boy" from the folks at Microsoft.
 
Old January 27th, 2012, 12:10 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

The thing is: it's not easy to reproduce. I have yet to find a way to consistently reproduce this problem. If you have a way, go and collect your star at: http://connect.microsoft.com. Your voice will be heard just as those from "enterprising fellows"...

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
Compile error vbboyd BOOK: Beginning ASP.NET 4 : in C# and VB 3 May 19th, 2011 03:28 AM
Compile error: Syntax error: & Else without HELP Corey VB How-To 2 April 21st, 2006 03:25 PM
error message when i compile clubfalco JSP Basics 0 March 8th, 2004 10:03 PM
Compile Error aglatfel Access VBA 2 January 13th, 2004 04:01 PM
compile error burdickdave C# 1 October 20th, 2003 01:46 PM





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