Installation of "SQLiteWebSiteCS"

Topics: Developer Forum
Aug 21, 2007 at 3:39 PM
hi,
I tried to install "SQLiteWebSiteCS" exemple and in page "http://localhost:4106/Web/edit/install/Default.aspx" it was an error:
"Ooops, something is wrong: The factory instance hasn't been initialized, try configuring the httpmodule or calling N2.Factory.Initialize(...) "
I have SQL SERVER 2005
Coordinator
Aug 21, 2007 at 5:48 PM
Oh, that example is configured to run against the SQLite embedded database. For SQL Server 2005 you should change web.config into something like this e.g.:

...<connectionStrings>
<add name="LocalSqlServer" connectionString="Server=(local);Database=n2cms;Integrated Security=SSPI"/>

<castle>...<nhSettings>
<entry key="hibernate.connection.driver_class">NHibernate.Driver.SqlClientDriver</entry>
<entry key="hibernate.dialect">NHibernate.Dialect.MsSql2005Dialect</entry>

See here http://n2cms.com/Documentation/Connection%20strings.aspx and here http://n2cms.com/Documentation/Content-enabling%20an%20existing%20site/Changes%20to%20web.config.aspx

You will probably also need to install the database tables, like this: http://n2cms.com/Documentation/Content-enabling%20an%20existing%20site/Database%20installation.aspx
Aug 22, 2007 at 10:17 AM
Thanks for the quick response.
untill now it is allright, Test connection is ok I'm trying now to start editing content
Aug 22, 2007 at 10:46 AM
Sorry Libardo but there is another little problem when i'mexecuting project
the error generated is "reference of object is not identified by in instance of this object" (excuse me this is just my traduction from french).
So i tried to do a diagnostic with "http://localhost:4106/Web/edit/install/Diagnose.aspx" ;
it found ;
1)Root item Error while performing the operation.
La référence d'objet n'est pas définie à une instance d'un objet.

à N2.Installation.InstallationManager.CheckRootNode()
à N2.Edit.Install.Diagnose.OnPreRender(EventArgs e)
2)Start page Error while performing the operation.La référence d'objet n'est pas définie à une instance d'un objet.

à N2.Installation.InstallationManager.CheckStartNode()
à N2.Edit.Install.Diagnose.OnPreRender(EventArgs e)

I think it is the same cause for the too errors
Coordinator
Aug 22, 2007 at 11:47 AM
Could you open up your database and look at the table n2item? Please check that the id of the row there is the same as configured in web.config:
...
<castle>
<properties>
<rootItemID>1</rootItemID>
Aug 22, 2007 at 1:51 PM
Thank you very much for your help libardo,
I'm actually trying to view the other tips of N2
Aug 22, 2007 at 2:39 PM
It is really great what N2 can do