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 November 29th, 2006, 07:19 PM
Registered User
 
Join Date: Oct 2006
Location: Brentwood, , United Kingdom.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Instant Results - CMS Admin Problem

Dear Wrox

I have having a problem when I click on the Admin tab in that the error message below appears in the browser.

Compiler Error Message: BC30456: 'Theme' is not a member of 'ASP.management_default_aspx'.

Source Error:
Line 1: <%@ Page Language="VB" MasterPageFile="~/AdminMaster.master" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" title="CMS Management Home Page" %>
Line 2: <asp:Content ID="Content1" ContentPlaceHolderID="MainContentPlaceholder" Runat="Server">
Line 3: <h1>Welcome to the Wrox CMS</h1>


Source File: C:\inetpub\wwwroot\CMS\Management\Default.aspx Line: 1

I've also tried it in debug where a number of errors are thrown up.
The errors seem to relate to properties and classes not being found. A couple of samples are (from the 42 total) are:

Error 97 Make sure that the class defined in this code file matches the 'inherits' attribute, and that it extends the correct base class (e.g. Page or UserControl). C:\inetpub\wwwroot\CMS\Management\ContentList.aspx .vb 7

Error 127 'Theme' is not a member of 'ASP.management_contentlist_aspx'. C:\inetpub\wwwroot\CMS\Management\ContentList.aspx 1
Error 128 'Title' is not a member of 'ASP.management_contentlist_aspx'. C:\inetpub\wwwroot\CMS\Management\ContentList.aspx 1
Error 129 'InitializeCulture' is not a member of 'ASP.management_contentlist_aspx'. C:\inetpub\wwwroot\CMS\Management\ContentList.aspx 1
My setup is as follows:
Windows XP Pro, IIS6, SQL Server 2005 Standard, VS2005 Professional.

I read another Message thread CMS - Can't Login where this problem was touched on but not really resolved. FYI I've downloaded the new DB and config files and updated the config file to reflect the SQL Standard connection as follows:

<connectionStrings>
     <add name="Cms"
         connectionString="Data Source=localhost\Development;
            Initial Catalog=CMS;
            User ID=CMSDevUser;
            password=password"
         providerName="System.Data.SqlClient" />
</connectionStrings>

This is the only change I've made to the config file.

Any help gratefully received.

Nick
  #2 (permalink)  
Old November 30th, 2006, 09:11 AM
Registered User
 
Join Date: Oct 2006
Location: Brentwood, , United Kingdom.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

OK.

Further development - some of the problems were caused by the fact that the classes for pages Default and Management\Default both had classes called _Default. Renamed the Management\Default class and errors down to 27. Begs the question why this doesn't affect everyone who's installed the CMS ?

Nick

Dans l'amour veritable c'est l'ame qui enveloppe le corps.
  #3 (permalink)  
Old November 30th, 2006, 09:20 AM
Registered User
 
Join Date: Oct 2006
Location: Brentwood, , United Kingdom.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Aha. The rest of the errors were caused by exactly the same problem as above with regards the ContentList and Management\Contentlist.
So thanks to me for all my help:).

Still leaves the question of why everyone doesn't get the problem. Is it because I've got it running under IIS as opposed to Cassini ? Another mystery to add to life's rich tapestry.

Dans l'amour veritable c'est l'ame qui enveloppe le corps.
  #4 (permalink)  
Old November 30th, 2006, 04:49 PM
Imar's Avatar
Wrox Author
Points: 72,045, Level: 100
Points: 72,045, Level: 100 Points: 72,045, Level: 100 Points: 72,045, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,084
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Quote:
quote:Another mystery to add to life's rich tapestry.
You can certainly say so. I have ran all of the apps from the book that I wrote both under Cassini and IIS, and never ran into this.

It's probably a good idea to give pages / classes unique names anyway, so had I know of this problem, I would certainly have called them differently...

Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / 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
ASPNET 2.0 Instant Results SurveyEngine Problem john77 BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 1 December 4th, 2007 08:16 PM
CMS - admin login does not work peppie BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 2 October 20th, 2007 08:46 AM
Instant Results - Add SubMenu Items jvm2552 ASP.NET 2.0 Professional 1 September 4th, 2007 01:13 PM
Instant Results Modification of webshop problems malex BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 1 March 8th, 2007 04:12 PM
Question about the CMS, Odd admin 24/7 Tdelamor BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 0 September 30th, 2005 07:30 PM



All times are GMT -4. The time now is 12:45 PM.


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