Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 4.5.1 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4.5.1: in C# and VB by Imar Spaanjaars; ISBN: 978-1-118-84677-3
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4.5.1 : 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 March 16th, 2015, 11:24 AM
Registered User
 
Join Date: Mar 2015
Posts: 9
Thanks: 4
Thanked 1 Time in 1 Post
Default

Hi,
Thank you for the reply. I was out of station, so couldn't reply.
I deleted the tables as per the instruction and added those table again and copied the code in the Try it Out of page 505 and 513 from the code download of this book but same error persist. So I copied all the try it out of the chapter 14 from the code download and proceeded to the next chapter.

What I noticed that whenever I am writing code related to model binding with LINQ query I am getting the error, '..... is not declared. It may be inaccessible due to its protection level'.
eg: In the try it out of page no580 of chapter 15, I am getting error,
'Repeater1' is not declared. It may be inaccessible due to its protection level'
'Item' is not declared. It may be inaccessible due to its protection level.

In the design view, I can see an error related to Repeater1 as below.
'Type System.Web.UI.WebControls.Repeater' does not have a public property named 'ItemType'.

Is there any particular namespace or class to be included to work with the model binding in VB?
Kindly help me. I am basically a mainframe developer and trying to learn ASP.net by using this book. I got a job offer and hence I am trying to learn ASP as soon as possible. I am ignoring the error and proceed with the chapters so that I can atleast understand the concept in ASP.Net.
Thanks in advance.
 
Old March 20th, 2015, 11:12 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Something is broken somewhere but I can't tell what without knowing more. Can you zip the site and make it available somewhere online? Then I'll take a look.

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!
The Following User Says Thank You to Imar For This Useful Post:
shameema (March 26th, 2015)
 
Old March 23rd, 2015, 02:05 AM
Registered User
 
Join Date: Mar 2015
Posts: 9
Thanks: 4
Thanked 1 Time in 1 Post
Default

Thank You!!

I have send the zipped site to your mail [email protected] (I got this mail id from the book). Hope you have already received it.

Thanks again.
 
Old March 25th, 2015, 06:55 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,

For some reason, your site is targeting ASP.NET 4 instead of 4.5.1. To change it, follow these steps:

1. Right-click the site in Visual Studio and choose Property Pages.

2. Click the Build tab.

3. Under Target Framework, choose .NET Framework 4.5.1

4. Click OK.

5. When the changes have been applied, right-click the site and choose Build Web site.

That fixes it for me.

Please let me know if this doesn't work for you.

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!
The Following User Says Thank You to Imar For This Useful Post:
shameema (March 26th, 2015)
 
Old March 26th, 2015, 02:36 AM
Registered User
 
Join Date: Mar 2015
Posts: 9
Thanks: 4
Thanked 1 Time in 1 Post
Default

Hi,

Wow... I followed your instructions and changed to ASP.NET.4.5.1. Now there is no error in my site. Thanks a lot.. Really appreciate your help.
I have one warning poping up though as shown below.

Some NuGet packages were installed using a target framework different from the current target framework and may need to be reinstalled. Visit http://docs.nuget.org/docs/workflows...lling-packages for more information. Packages affected: EntityFramework, Microsoft.AspNet.FriendlyUrls.Core, Microsoft.AspNet.ScriptManager.WebForms

Can you kindly guid me on how to reinstall these packages?

Thank you once again!!!
 
Old March 26th, 2015, 03: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

What about following the link in the message you posted for more info? ;-)

As an alternative, you could uninstall them using the uninstall-package command and then reinstall them.

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!
The Following User Says Thank You to Imar For This Useful Post:
shameema (March 29th, 2015)
 
Old March 29th, 2015, 03:27 AM
Registered User
 
Join Date: Mar 2015
Posts: 9
Thanks: 4
Thanked 1 Time in 1 Post
Default

Thank You!!!
I thought ill get quick and direct answer from you .

Beginning ASP.NET 4.5.1 is a great book for a beginner. And author and supporting system like this is like icing on the cake. I have almost completed this book and already bought professional ASP.NET from Wrox. Strongly recommend this book for beginners.

Thank you once again.
The Following User Says Thank You to shameema For This Useful Post:
Imar (March 29th, 2015)





Similar Threads
Thread Thread Starter Forum Replies Last Post
chapter 14 try out page 497 marysunish BOOK: Beginning ASP.NET 4 : in C# and VB 2 May 11th, 2012 04:01 PM
chapter 14 Try It Out pg 505 step #4 arodrigu12 BOOK: Beginning ASP.NET 4 : in C# and VB 3 April 21st, 2011 02:28 PM
Including NameTable Optimization (page 513) DBoucherie BOOK: Professional ASP.NET 3.5 : in C# and VB ISBN: 978-0-470-18757-9 0 April 20th, 2011 09:19 AM
Try it out on page 505 fredfenk BOOK: Beginning ASP.NET 4 : in C# and VB 7 April 13th, 2011 03:16 PM
Chapter 1 page 14 kermit1965 BOOK: Professional ASP.NET MVC 2 6 October 12th, 2010 10:10 AM





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