0 Rock Core Error 1 Dillan Cagnetta posted 8 Years Ago Hi i pulled the development from GitHub but get this error after building and viewing in browser. EntityCommandExecutionException in EntityFramework Message An error occurred while executing the command definition. See the inner exception for details. Stack Trace at System.Data.Entity.Core.EntityClient.Internal.EntityCommandDefinition.ExecuteStoreCommands(EntityCommand entityCommand, CommandBehavior behavior) at System.Data.Entity.Core.Objects.Internal.ObjectQueryExecutionPlan.Execute[TResultType](ObjectContext context, ObjectParameterCollection parameterValues) at System.Data.Entity.Core.Objects.ObjectQuery`1.<>c__DisplayClass7.b__6() at System.Data.Entity.Core.Objects.ObjectContext.ExecuteInTransaction[T](Func`1 func, IDbExecutionStrategy executionStrategy, Boolean startLocalTransaction, Boolean releaseConnectionOnSuccess) at System.Data.Entity.Core.Objects.ObjectQuery`1.<>c__DisplayClass7.b__5() at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute[TResult](Func`1 operation) at System.Data.Entity.Core.Objects.ObjectQuery`1.GetResults(Nullable`1 forMergeOption) at System.Data.Entity.Core.Objects.ObjectQuery`1.< />.GetEnumerator>b__0() at System.Data.Entity.Internal.LazyEnumerator`1.MoveNext() at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source) at System.Data.Entity.Core.Objects.ELinq.ObjectQueryProvider.b__1[TResult](IEnumerable`1 sequence) at System.Data.Entity.Core.Objects.ELinq.ObjectQueryProvider.ExecuteSingle[TResult](IEnumerable`1 query, Expression queryRoot) at System.Data.Entity.Core.Objects.ELinq.ObjectQueryProvider.System.Linq.IQueryProvider.Execute[TResult](Expression expression) at System.Data.Entity.Internal.Linq.DbQueryProvider.Execute[TResult](Expression expression) at System.Linq.Queryable.FirstOrDefault[TSource](IQueryable`1 source, Expression`1 predicate) at Rock.Data.Service`1.Get(Int32 id) in F:\My Documents\My Development\Rock RMS\GitHub\Rock\Data\Service.cs:line 134 at Rock.Web.Cache.SiteCache.LoadById2(Int32 id, RockContext rockContext) in F:\My Documents\My Development\Rock RMS\GitHub\Rock\Web\Cache\SiteCache.cs:line 576 at Rock.Web.Cache.SiteCache.LoadById(Int32 id, RockContext rockContext) in F:\My Documents\My Development\Rock RMS\GitHub\Rock\Web\Cache\SiteCache.cs:line 569 at Rock.Web.Cache.SiteCache.<>c__DisplayClass123_0.b__0() in F:\My Documents\My Development\Rock RMS\GitHub\Rock\Web\Cache\SiteCache.cs:line 557 at Rock.Web.Cache.CachedEntity`1.GetOrAddExisting[TT](String key, Func`1 valueFactory) in F:\My Documents\My Development\Rock RMS\GitHub\Rock\Web\Cache\CachedEntity.cs:line 57 at Rock.Web.Cache.SiteCache.Read(Int32 id, RockContext rockContext) in F:\My Documents\My Development\Rock RMS\GitHub\Rock\Web\Cache\SiteCache.cs:line 556 at Rock.Web.Cache.SiteCache.GetSiteByDomain(String host) in F:\My Documents\My Development\Rock RMS\GitHub\Rock\Web\Cache\SiteCache.cs:line 662 at Rock.Web.RockRouteHandler.System.Web.Routing.IRouteHandler.GetHttpHandler(RequestContext requestContext) in F:\My Documents\My Development\Rock RMS\GitHub\Rock\Web\RockRouteHandl
Dillan Cagnetta 8 years ago Hi Davidi managed to get it sorted thanksI pulled hotfix 1.4.5 but under ROCK UPDATE it says im running rock 1.0 and lists the updates availableshould i apply them? i thought i was pulling the latest 4.5 with fixes?I did run the update and it broke my system
David Leigh 8 years ago If you are pulling the source code from GitHub, you need to run database updates manually using the Entity Framework "Update-Database" command in Visual Studio rather than updating through the UI.
Nick Airdo 8 years ago David's correct. The Rock Update block under the admin area is intended for non-developer to update their production system. It's definitely not compatible with anyone manually doing git branch and repo merges. I'm pretty sure it would put your development system in a rather unknown state. :( Sorry about that!