Wrox Programmer Forums
| 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 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
  #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: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 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.


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





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