Installation fail! An error occurred while updating the entries. See the inner exception for details.

Sep 29, 2011 at 7:56 AM

Hi DNA Admin,

Thanks so much for great project. I like it.
I have a problem when install DNA 2.1, please help me.
The first I create 5 empty DB in my sql server 2008: 
  • DNA_pubdb
  • DNA_forumdb
  • DNA_DNADB
  • DNA_aspnet
  • DNA_log

Next, I run project in VS 2011 and open webconfig in root and change connection string to:

  • <add name="PubDB" connectionString="Data Source=.\SqlServer2008; Initial Catalog=DNA_pubdb; Persist Security Info=True; User ID=xxx; Password=xxx;MultipleActiveResultSets=True" providerName="System.Data.SqlClient"/>
  • <add name="ForumDB" connectionString="Data Source=.\SqlServer2008; Initial Catalog=DNA_forumdb; Persist Security Info=True; User ID=xxx; Password=xxx;MultipleActiveResultSets=True" providerName="System.Data.SqlClient"/>
  • <add name="DNADB" connectionString="Data Source=.\SqlServer2008; Initial Catalog=DNA_DNADB; Persist Security Info=True; User ID=xxx; Password=xxx;MultipleActiveResultSets=True" providerName="System.Data.SqlClient"/>
  • <add name="DefaultConnection" connectionString="Data Source=.\SqlServer2008; Initial Catalog=DNA_aspnet; Persist Security Info=True; User ID=xxx; Password=xxx;MultipleActiveResultSets=True" providerName="System.Data.SqlClient"/>
  • <add name="LogConnection" connectionString="Data Source=.\SqlServer2008; Initial Catalog=DNA_log; Persist Security Info=True; User ID=xxx; Password=xxx;MultipleActiveResultSets=True" providerName="System.Data.SqlClient"/>

Next, I F5 to run it. It run Ok.

  • In step 1(Preparing) message is: Awesome! --> success
  • In step 2:(Set up admin account): I can create admin account. --> success
  • In step 3:(Set up top site): I get a message: Installation fail! An error occurred while updating the entries. See the inner exception for details. And bellow is error detail:
An error occurred while updating the entries. See the inner exception for details.
Source:EntityFramework
Data:System.Collections.ListDictionaryInternal
StackTrace:
at System.Data.Entity.Internal.InternalContext.SaveChanges() at System.Data.Entity.Internal.LazyInternalContext.SaveChanges() at System.Data.Entity.DbContext.SaveChanges() at DNA.Mvc.Data.Entity.UnitOfWorkBase`1.SaveChanges(Boolean validateOnSave) in D:\Project\DNA\dotnetage-10273\DNA.Mvc.Data.Entity\UnitOfWorkBase.cs:line 41 at DNA.Mvc.Installation.InstallationHelpers.WidgetsSeed(IDataContext dbContext) in D:\Project\DNA\dotnetage-10273\DNA.Mvc.Installation\InstallationHelpers.cs:line 13 at DNA.Mvc.Controllers.InstallController.CreateWeb(Web web, String solution) in D:\Project\DNA\dotnetage-10273\DNA.Mvc.Web\Controllers\InstallController.cs:line 93

Please help me.

Thanks so much.

Coordinator
Sep 29, 2011 at 5:10 PM

To change the default database to SQLServer please read this article : http://www.dotnetage.com/publishing/dna/2011/09/03/6915/how-to-use-sqlserver-for-dotnetage2-1-.html

Oct 4, 2011 at 2:00 PM

I got the same problem.  Did you resolve it ? thanks!