Quantcast
Channel: C1 CMS Foundation - Open Source on .NET
Viewing all articles
Browse latest Browse all 2540

New Post: SqlDataProvider Error

$
0
0
The data source conversion (migration) is required.

The vanilla Composite C1 has XML files as it data source initially.
When you convert, all the data required by the system (even if you have no website yet) is moved to an SQL database where required tables are created.

Changing
<Composite.Data.Plugins.DataProviderConfiguration defaultDynamicTypeDataProviderName="DynamicXmlDataProvider">
to
<Composite.Data.Plugins.DataProviderConfiguration defaultDynamicTypeDataProviderName="DynamicSqlDataProvider">
is not just enough.

Even though some code in Composite C1 gets to create some tables in an SQL database when you simply change this setting, it doesn't create all the required tables and doesn't fill them with all the required data because you haven't migrated your data source from XML files to an SQL database.

You shouldn't change the setting above before building Composite C1.

In short, your steps should be like this:
  1. Build the source.
  2. Run Composite C1 setup wizard - to initialize it. This will create the data source, XML-based initially. (Here you can choose not to install any starter website - the Bare Bones option. )
  3. Install the Composite.Tools.SqlServerDataProvider add-on.
  4. Convert your XML-based data source into the SQL-based one using this add-on.
  5. Use the system :)

Viewing all articles
Browse latest Browse all 2540

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>