 |
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
|
|
|
|
|

January 23rd, 2012, 09:20 PM
|
|
Friend of Wrox
|
|
Join Date: May 2011
Posts: 411
Thanks: 13
Thanked 7 Times in 7 Posts
|
|
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\
|
|

January 23rd, 2012, 09:30 PM
|
|
Friend of Wrox
|
|
Join Date: May 2011
Posts: 411
Thanks: 13
Thanked 7 Times in 7 Posts
|
|
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!
|
|

January 23rd, 2012, 09:36 PM
|
|
Friend of Wrox
|
|
Join Date: May 2011
Posts: 411
Thanks: 13
Thanked 7 Times in 7 Posts
|
|
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?
|
|

January 27th, 2012, 08:47 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
>> 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
|
|

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

January 27th, 2012, 11:42 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
If nobody registers it, Microsoft doesn't know of it and won't be able to fix it.... ;-)
Imar
|
|

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

January 27th, 2012, 12:10 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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
|
|
 |
|