Copied to clipboard

Flag this post as spam?

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


  • Anders Brohus 194 posts 475 karma points
    Mar 31, 2020 @ 11:41
    Anders Brohus
    0

    Can't upgrade to V8.6

    Hi,

    Currently having some really strange issues when trying to upgrade Umbraco 8.5.5 to 8.6

    At first i get an boot error,

    [NullReferenceException: Objektreferencen er ikke indstillet til en forekomst af et objekt.]
       Umbraco.Web.Runtime.WebRuntime.Boot(IRegister register) in D:\a\1\s\src\Umbraco.Web\Runtime\WebRuntime.cs:46
       Umbraco.Web.UmbracoApplicationBase.HandleApplicationStart(Object sender, EventArgs evargs) in D:\a\1\s\src\Umbraco.Web\UmbracoApplicationBase.cs:65
       Umbraco.Web.UmbracoApplicationBase.Application_Start(Object sender, EventArgs evargs) in D:\a\1\s\src\Umbraco.Web\UmbracoApplicationBase.cs:74
    
    [HttpException (0x80004005): Objektreferencen er ikke indstillet til en forekomst af et objekt.]
       System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +475
       System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +118
       System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +176
       System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +220
       System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +303
    
    [HttpException (0x80004005): Objektreferencen er ikke indstillet til en forekomst af et objekt.]
       System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +659
       System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +89
       System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +189
    

    But after a repull and upgrade i get this error

    Boot failed: Umbraco cannot run. See Umbraco's log file for more details.
    
    -> Umbraco.Core.Exceptions.BootFailedException: Boot failed.
    
    -> System.Data.SqlClient.SqlException: Invalid column name 'mandatoryMessage'.
    Invalid column name 'validationRegExpMessage'.
      ved System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
      ved System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
      ved System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
      ved System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
      ved System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()
      ved System.Data.SqlClient.SqlDataReader.get_MetaData()
      ved System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted)
      ved System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest)
      ved System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)
      ved System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
      ved System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
      ved System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
      ved System.Data.Common.DbCommand.ExecuteReader(CommandBehavior behavior)
      ved StackExchange.Profiling.Data.ProfiledDbCommand.ExecuteDbDataReader(CommandBehavior behavior) i C:\projects\dotnet\src\MiniProfiler.Shared\Data\ProfiledDbCommand.cs:linje 221
      ved System.Data.Common.DbCommand.ExecuteReader(CommandBehavior behavior)
      ved Umbraco.Core.Persistence.FaultHandling.FaultHandlingDbCommand.<>c__DisplayClass30_0.<ExecuteDbDataReader>b__0() i D:\a\1\s\src\Umbraco.Core\Persistence\FaultHandling\RetryDbConnection.cs:linje 204
      ved Umbraco.Core.Persistence.FaultHandling.FaultHandlingDbCommand.<>c__DisplayClass33_0`1.<Execute>b__0() i D:\a\1\s\src\Umbraco.Core\Persistence\FaultHandling\RetryDbConnection.cs:linje 222
      ved Umbraco.Core.Persistence.FaultHandling.RetryPolicy.ExecuteAction[TResult](Func`1 func) i D:\a\1\s\src\Umbraco.Core\Persistence\FaultHandling\RetryPolicy.cs:linje 172
      ved Umbraco.Core.Persistence.FaultHandling.FaultHandlingDbCommand.Execute[T](Func`1 f) i D:\a\1\s\src\Umbraco.Core\Persistence\FaultHandling\RetryDbConnection.cs:linje 219
      ved Umbraco.Core.Persistence.FaultHandling.FaultHandlingDbCommand.ExecuteDbDataReader(CommandBehavior behavior) i D:\a\1\s\src\Umbraco.Core\Persistence\FaultHandling\RetryDbConnection.cs:linje 204
      ved System.Data.Common.DbCommand.ExecuteReader()
      ved NPoco.Database.ExecuteReaderHelper(DbCommand cmd)
      ved NPoco.Database.ExecuteDataReader(DbCommand cmd)
      ved NPoco.Database.<QueryImp>d__164`1.MoveNext()
      ved System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
      ved System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
      ved NPoco.Database.Fetch[T](Sql sql)
      ved Umbraco.Core.Persistence.Repositories.Implement.ContentTypeCommonRepository.MapGroupsAndProperties(IDictionary`2 contentTypes) i D:\a\1\s\src\Umbraco.Core\Persistence\Repositories\Implement\ContentTypeCommonRepository.cs:linje 192
      ved Umbraco.Core.Persistence.Repositories.Implement.ContentTypeCommonRepository.GetAllTypesInternal() i D:\a\1\s\src\Umbraco.Core\Persistence\Repositories\Implement\ContentTypeCommonRepository.cs:linje 111
      ved Umbraco.Core.Cache.AppCacheExtensions.<>c__DisplayClass0_0`1.<GetCacheItem>b__0() i D:\a\1\s\src\Umbraco.Core\Cache\AppCacheExtensions.cs:linje 22
      ved Umbraco.Core.Cache.FastDictionaryAppCacheBase.<>c__DisplayClass21_0.<GetSafeLazy>b__0() i D:\a\1\s\src\Umbraco.Core\Cache\FastDictionaryAppCacheBase.cs:linje 285
    --- Afslutningen på staksporingen fra den tidligere placering, hvor undtagelsen blev udløst ---
      ved Umbraco.Core.Cache.WebCachingAppCache.Get(String key, Func`1 factory, Nullable`1 timeout, Boolean isSliding, CacheItemPriority priority, CacheItemRemovedCallback removedCallback, CacheDependency dependency) i D:\a\1\s\src\Umbraco.Core\Cache\WebCachingAppCache.cs:linje 179
      ved Umbraco.Core.Cache.WebCachingAppCache.Get(String key, Func`1 factory, Nullable`1 timeout, Boolean isSliding, CacheItemPriority priority, CacheItemRemovedCallback removedCallback, String[] dependentFiles) i D:\a\1\s\src\Umbraco.Core\Cache\WebCachingAppCache.cs:linje 45
      ved Umbraco.Core.Cache.DeepCloneAppCache.Get(String key, Func`1 factory, Nullable`1 timeout, Boolean isSliding, CacheItemPriority priority, CacheItemRemovedCallback removedCallback, String[] dependentFiles)
      ved Umbraco.Core.Persistence.Repositories.Implement.ContentTypeCommonRepository.GetAllTypes() i D:\a\1\s\src\Umbraco.Core\Persistence\Repositories\Implement\ContentTypeCommonRepository.cs:linje 48
      ved Umbraco.Core.Persistence.Repositories.Implement.ContentTypeRepository.PerformGetAll(Int32[] ids) i D:\a\1\s\src\Umbraco.Core\Persistence\Repositories\Implement\ContentTypeRepository.cs:linje 60
      ved Umbraco.Core.Cache.FullDataSetRepositoryCachePolicy`2.GetAllCached(Func`2 performGetAll) i D:\a\1\s\src\Umbraco.Core\Cache\FullDataSetRepositoryCachePolicy.cs:linje 166
      ved Umbraco.Core.Cache.FullDataSetRepositoryCachePolicy`2.GetAll(TId[] ids, Func`2 performGetAll)
      ved Umbraco.Core.Persistence.Repositories.Implement.RepositoryBase`2.GetMany(TId[] ids) i D:\a\1\s\src\Umbraco.Core\Persistence\Repositories\Implement\RepositoryBaseOfTIdTEntity.cs:linje 192
      ved Umbraco.Core.Services.Implement.ContentTypeServiceBase`3.GetAll(Int32[] ids) i D:\a\1\s\src\Umbraco.Core\Services\Implement\ContentTypeServiceBaseOfTRepositoryTItemTService.cs:linje 251
      ved Diviso.Standard.Demo.App_Start.TranslationsModuleComponent.CheckTranslations() i D:\Web\TH\Umbraco86\THBiostroe.Web\App_Start\TranslationsModuleComponent.cs:linje 38
      ved Diviso.Standard.Demo.App_Start.TranslationsModuleComponent.Initialize() i D:\Web\TH\Umbraco86\THBiostroe.Web\App_Start\TranslationsModuleComponent.cs:linje 28
      ved Umbraco.Core.Composing.ComponentCollection.Initialize() i D:\a\1\s\src\Umbraco.Core\Composing\ComponentCollection.cs:linje 32
      ved Umbraco.Core.Runtime.CoreRuntime.Boot(IRegister register, DisposableTimer timer) i D:\a\1\s\src\Umbraco.Core\Runtime\CoreRuntime.cs:linje 188
    

    Anyone can help?

  • Comment author was deleted

    Mar 31, 2020 @ 11:53

    seems db upgrade failed... and it now is in 8.6 mode but is missing the new mandatoryMessage column (did you get the upgrade wizard?)

  • Comment author was deleted

    Mar 31, 2020 @ 12:07

    is your site in debug mode? seems the line that gives the error only get's hit in debug mode

    https://github.com/umbraco/Umbraco-CMS/blob/v8/contrib/src/Umbraco.Web/Runtime/WebRuntime.cs#L46

    and has to do with webprofiler

  • Anders Brohus 194 posts 475 karma points
    Mar 31, 2020 @ 12:08
    Anders Brohus
    0

    Didn't get any update wizard, and the website works fine when i repull from github and restore the v8.5.5 package :)

    Yeah i'll always run the site in debug mode when developing on localhost :)

  • Comment author was deleted

    Mar 31, 2020 @ 12:12

    yeah of course... will see what happens with a site of mine...

  • Comment author was deleted

    Mar 31, 2020 @ 12:27

    Also YSOD, different error,

    Boot failed: Umbraco cannot run. See Umbraco's log file for more details.

    -> Umbraco.Core.Exceptions.BootFailedException: Boot failed.

    -> System.InvalidOperationException: Unable to resolve type: Umbraco.Core.Composing.ComponentCollection, service name: at LightInject.ServiceContainer.CreateDelegate(Type serviceType, String serviceName, Boolean throwError) in C:\projects\lightinject\src\LightInject\LightInject.cs:line 4748 at LightInject.ServiceContainer.CreateDefaultDelegate(Type serviceType, Boolean throwError) in C:\projects\lightinject\src\LightInject\LightInject.cs:line 4705 at LightInject.ServiceContainer.GetInstance(Type serviceType) in C:\projects\lightinject\src\LightInject\LightInject.cs:line 3437 at Umbraco.Core.Composing.LightInject.LightInjectContainer.GetInstance(Type type) in D:\a\1\s\src\Umbraco.Core\Composing\LightInject\LightInjectContainer.cs:line 111 at Umbraco.Core.FactoryExtensions.GetInstance[T](IFactory factory) in D:\a\1\s\src\Umbraco.Core\FactoryExtensions.cs:line 22 at Umbraco.Core.Runtime.CoreRuntime.Boot(IRegister register, DisposableTimer timer) in D:\a\1\s\src\Umbraco.Core\Runtime\CoreRuntime.cs:line 187

    -> System.InvalidOperationException: Unable to resolve type: Our.Umbraco.FullTextSearch.Components.PerformCacheTasksComponent, service name: at LightInject.ServiceContainer.CreateDelegate(Type serviceType, String serviceName, Boolean throwError) in

    Seems due to a third party package.... in my case

  • Anders Brohus 194 posts 475 karma points
    Mar 31, 2020 @ 12:32
    Anders Brohus
    0

    I'm using DocTypeGridEditor and uSync :)

  • Comment author was deleted

    Mar 31, 2020 @ 12:33

    join the conv on twitter, seems HQ monitors that closer then the forum https://twitter.com/timgeyssens/status/1244964755766497288

  • Anders Brohus 194 posts 475 karma points
    Mar 31, 2020 @ 12:45
    Anders Brohus
    0

    Thanks will do :)

  • Anders Brohus 194 posts 475 karma points
    Mar 31, 2020 @ 17:40
    Anders Brohus
    1

    Okay i got it to work :)

    What i did was upgrade via NuGet which gave me an error, so i went in and copied the Umbraco and Bin folder from the zip release, and replaced everything, and then i deleted my project dll file, and then i could upgrade, after that it was possible to build my project! :)

  • Comment author was deleted

    Mar 31, 2020 @ 18:24

    strange nuget didn't work... but glad you got it working :)

Please Sign in or register to post replies

Write your reply to:

Draft