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 September 10th, 2011, 11:14 AM
Authorized User
 
Join Date: Aug 2010
Posts: 50
Thanks: 7
Thanked 0 Times in 0 Posts
Default Chapter 17 pg630 --metadata error

Hi Imar,

I keep getting the following metadata error. Can you please take a look and help me out. Thanks.

Server Error in '/Site' Application.
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS1031: Type expected

Source Error:

Line 35: }
Line 36:
Line 37: public virtual System.Collections.Generic.List<>(System.Int32 FavoriteGenres {
Line 38: get {
Line 39: return ((System.Collections.Generic.List<>(System.Int32)( this.GetPropertyValue("FavoriteGenres")));


Source File: c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temp orary ASP.NET Files\site\5537f93a\1e0b27af\App_Code.piffyrnq.5.c s Line: 37


Show Detailed Compiler Output:

Show Complete Compilation Source:
 
Old September 10th, 2011, 11:44 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 there,

Can you post the code for your web.config? Looks like a problem with the generic list of integers for the favorite genre.

Please paste as plain text and wrap the code in code tags using the Code (#) button.

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 September 10th, 2011, 12:03 PM
Authorized User
 
Join Date: Aug 2010
Posts: 50
Thanks: 7
Thanked 0 Times in 0 Posts
Default

Thanks Imar!

I found my mistake it was like you said the Generic Integers I didnt have brackets around my System.Int32.

Thanks.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 17 error from class stevect BOOK: Beginning iOS 4 Application Development 1 August 4th, 2011 10:58 PM
Chapter 17-WebPart error Berdia BOOK: Professional ASP.NET 3.5 : in C# and VB ISBN: 978-0-470-18757-9 0 May 24th, 2010 08:15 AM
Gridview Chapter 17 error Kelv BOOK: Beginning Visual Basic 2005 ISBN: 978-0-7645-7401-6 1 February 19th, 2009 11:49 AM
Error code: Chapter 17 Pag 576 luisxvarg BOOK: Beginning Visual Basic 2005 ISBN: 978-0-7645-7401-6 1 October 15th, 2007 08:06 PM





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