Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6
This is the forum to discuss the Wrox book ASP.NET 2.0 Instant Results by Imar Spaanjaars, Paul Wilton, Shawn Livermore; ISBN: 9780471749516
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 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
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 15th, 2008, 11:55 AM
Registered User
 
Join Date: Oct 2008
Location: , , Canada.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Wrox CMS

hello,

i have downloaded the updated code and fix for the login.
i can login and create content, Categories and Content Types.
The problem i face is when i try to click on Read more link or try to edit a content the application throws an error which i have pasted below.
Another issue is that i am unable to delete any content. i can delete categories and other stuff.

This question is for Imaar, when are you releasing a Asp.net 3.5 instant results????????
thank you for such a great book


Error code starts here ===============
System.IndexOutOfRangeException was unhandled by user code
  Message="PageViews"
  Source="System.Data"
  StackTrace:
       at System.Data.ProviderBase.FieldNameLookup.GetOrdina l(String fieldName)
       at System.Data.SqlClient.SqlDataReader.GetOrdinal(Str ing name)
       at ContentDB.GetItem(Int32 id) in C:\Inetpub\wwwroot\MyCms\App_Code\DataAccess\Conte ntDB.vb:line 71
       at Content.GetItem(Int32 id) in C:\Inetpub\wwwroot\MyCms\App_Code\BusinessLogic\Co ntent.vb:line 157
       at ContentDetail.Page_Load(Object sender, EventArgs e) in C:\Inetpub\wwwroot\MyCms\ContentDetail.aspx.vb:lin e 14
       at System.Web.UI.Control.OnLoad(EventArgs e)
       at System.Web.UI.Control.LoadRecursive()
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)






  #2 (permalink)  
Old October 15th, 2008, 04:14 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: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Hi there,

Take a look at this:

System.Data.ProviderBase.FieldNameLookup.GetOrdina l(String fieldName)



This looks like you're doing a GetOrdinal for a column that doesn't exist. Make sure the column you're passing to GetOrdinal exists in the SELECT statement you're working with.
Code:
Another issue is that i am unable to delete any content. i can delete categories and other stuff.
As Ken used to say: the error is on line 11.

In other words: how can I help you if I don't know the problem. Is there no Delete button? Do you get an error when you click it if it is there? If so, what is the error? ANd so on....

Cheers,

Imar

P.S.: It's Imar, not Imaar..... ;)

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


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
C# Wrox CMS Code jminatel BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 5 June 3rd, 2009 04:41 AM
Wrox CMS - Altering the menu controls Eriskyne BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 3 October 15th, 2007 12:34 PM
Wrox CMS in C# .Netster BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 10 February 26th, 2007 04:56 PM
Wrox CMS Deletions retroviz BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 9 February 3rd, 2007 04:55 AM
Wrox CMS retroviz BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 5 January 31st, 2007 01:23 PM



All times are GMT -4. The time now is 01:09 AM.


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