Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • tripletdad99 7 posts 25 karma points
    Mar 17, 2011 @ 20:11
    tripletdad99
    0

    4.7.x new install error - Error running Reader

    After a fresh install, where I picked SQL CE 4, I'm getting the following error:

     

    Server Error in '/' Application.

    Error running Reader:
    SQL Statement:
    select * from comment where spam != 1 order by created desc

    Exception:
    System.Data.SqlServerCe.SqlCeException: The specified table does not exist. [ comment ]
    at System.Data.SqlServerCe.SqlCeCommand.ProcessResults(Int32 hr)
    at System.Data.SqlServerCe.SqlCeCommand.CompileQueryPlan()
    at System.Data.SqlServerCe.SqlCeCommand.ExecuteCommand(CommandBehavior behavior, String method, ResultSetOptions options)
    at System.Data.SqlServerCe.SqlCeCommand.ExecuteReader(CommandBehavior behavior)
    at SqlCE4Umbraco.SqlCeApplicationBlock.ExecuteReader(String connectionString, CommandType commandType, String commandText, SqlCeParameter[] commandParameters)

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Mar 17, 2011 @ 22:28
    Jan Skovgaard
    0

    Hi

    Does this happen during the install or is it happening when you log into the Umbraco backend after the installation has finished?

    /Jan

  • tripletdad99 7 posts 25 karma points
    Mar 17, 2011 @ 22:54
    tripletdad99
    0

    This happens when you go into the umbraco cms management pages, after a successful install, and click on (or initially land on) the "Content" root node.  There seems to be something jacked up with the starter kits... as this happens with (at least) the Business and Personal kits.

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Mar 17, 2011 @ 23:49
    Jan Skovgaard
    0

    Hi Tom

    Hmm, yeah this sounds like it could be a possible bug. It does not happen on a clean install?

    /Jan

  • tripletdad99 7 posts 25 karma points
    Mar 18, 2011 @ 00:37
    tripletdad99
    0

    If by "clean install" you mean one not utilizing a starter kit... I do not think this happens with those installations.  A friend of mine, also new to using Umbraco, has not reported this behavior on a clean, new install that he did - and he did not use a starter kit.

  • Tom Fulton 2030 posts 4998 karma points c-trib
    Mar 18, 2011 @ 13:01
    Tom Fulton
    0

    It sounds to me like it might be coming from a Dashboard Control included in a starter kit that might have a problem with SQL CE.  As a workaround you could try removing that control from /config/dashboard.config.

  • awoni 2 posts 23 karma points
    Mar 22, 2011 @ 15:55
    awoni
    1

    Hi

    This happens with the Business and Personal kits and not with Blog. It seems that an error has occured when creating table "Comment". Package.xml is different as follows and an error occurs in Personal kits with SQL CE. 

    Personal

           <Sqlserver><![CDATA[       
    CREATE TABLE [Comment](
    [id] [int] IDENTITY(1,1) NOT NULL,
    [mainid] [int] NOT NULL,
    [nodeid] [int] NOT NULL,
    [name] [nvarchar](250) NULL,
    [email] [nvarchar](250) NULL,
    [website] [nvarchar](250) NULL,
    [comment] [ntext] NULL,
    [spam] [bit] NULL,
    [ham] [bit] NULL,
    [created] [datetime] NULL
    CONSTRAINT [PK_Comment] PRIMARY KEY CLUSTERED
    (
    [id] ASC
    ));
    ]]></Sqlserver>

    Blog

          <Sqlserver>
    <![CDATA[
    CREATE TABLE [Comment](
    [id] [int] IDENTITY(1,1) NOT NULL CONSTRAINT [PK_Comment] PRIMARY KEY ,
    [mainid] [int] NOT NULL,
    [nodeid] [int] NOT NULL,
    [name] [nvarchar](250) NULL,
    [email] [nvarchar](250) NULL,
    [website] [nvarchar](250) NULL,
    [comment] [ntext] NULL,
    [spam] [bit] NULL,
    [ham] [bit] NULL,
    [created] [datetime] NULL
    );
    ]]></Sqlserver>
  • tripletdad99 7 posts 25 karma points
    Mar 22, 2011 @ 16:20
    tripletdad99
    0

    @awoni - Thanks for researching and finding that.  Hopefully those folks responsible for putting the starter kits together will see this and make the necessary adjustments.

     

  • Bob Campbell 3 posts 23 karma points
    Mar 30, 2011 @ 15:28
    Bob Campbell
    0

    I'm seeing this when I run the Business starter kit. Is there a work around for it?

  • tripletdad99 7 posts 25 karma points
    Mar 30, 2011 @ 15:45
    tripletdad99
    0

    Bob... [awoni] had posted earlier the differences in the XML files used to setup the various database tables... and showed the Blog versus Personal starter kit XML files.  While I have not tried this myself (yet), looking at the differences between the two files, and noting that the Blog starter kid DOES work, it might make sense to edit the package.xml file for the starter kit you want to use (Business in your case), and copy-n-paste the section shown in awoni's post over.  Worth trying anyway.

  • awoni 2 posts 23 karma points
    Apr 03, 2011 @ 14:27
    awoni
    0

    I opened a ticket about it http://umbraco.codeplex.com/workitem/30190

    You can run Business and Personal starter Kit with SQL CE in the next step.

    Make 'Comment' table with WebMatrix or VS2010. 

    CREATE TABLE [Comment](
    [id] [int] IDENTITY(1,1) NOT NULL CONSTRAINT [PK_Comment] PRIMARY KEY ,
    [mainid] [int] NOT NULL,
    [nodeid] [int] NOT NULL,
    [name] [nvarchar](250) NULL,
    [email] [nvarchar](250) NULL,
    [website] [nvarchar](250) NULL,
    [comment] [ntext] NULL,
    [spam] [bit] NULL,
    [ham] [bit] NULL,
    [created] [datetime] NULL
    );

    Edit xsltExtensions.config File and add <ext> tags as follows.

    <?xml version="1.0" encoding="utf-8" ?> 
    <XsltExtensions>
    <!--
    This file is used to register 3rt party xslt extensions (methods you can execute from xslt, like umbraco.library:NiceUrl)
    <ext assembly="assemblyName" type="assemblyName.namespace.type" alias="custom">
    -->
    <ext assembly="umbraco.editorControls" type="umbraco.editorControls.tags.library" alias="tagsLib">
    </ext>
    <ext assembly="Runway.Blog" type="Runway.Blog.BlogLibrary" alias="BlogLibrary">
    </ext>
    </XsltExtensions>
  • Barry Fogarty 493 posts 1129 karma points
    Jun 22, 2011 @ 11:15
    Barry Fogarty
    0

    Thanks awoni!  Your solution worked perfectly on my fresh SQLCE based install with the business starter kit.

  • Lee 5 posts 25 karma points
    Sep 03, 2011 @ 12:04
    Lee
    0

    Hi awoni,

    About this issue, I find the Package.xml, but there are many same files. So Can you give the path of Package.xml. I slove the issue by adding a "Comment" table in Umbraco.sdf. Now it is work ok for my system.

    Thank you.

Please Sign in or register to post replies

Write your reply to:

Draft