Copied to clipboard

Flag this post as spam?

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


  • Gilles 25 posts 107 karma points
    Oct 14, 2019 @ 14:59
    Gilles
    0

    Upgrade from 8.0.2 to 8.1.5: Boot Failed

    Hi there,

    I tried to upgrade my dev version if my site from 8.0.2 to 8.1.5 using NuGet in VS2019 (latest version installed).

    I fixed all the errors. All I had to do was change PublishedContentType to IPublishedContentType inside my model classes.

    ModelsBuilder is runnin in LiveAppData mode.

    Now, when starting the site on localhost, I have the following error:

    Boot failed: Umbraco cannot run. See Umbraco's log file for more details.
    
    -> Umbraco.Core.Exceptions.BootFailedException: Boot failed.
    
    -> System.TypeLoadException: Could not load type 'Umbraco.Core.Composing.TypeCollectionBuilderBase`2' from assembly 'Umbraco.Core, Version=8.0.0.0, Culture=neutral, PublicKeyToken=null'.
      at Umbraco.ModelsBuilder.Api.ModelsBuilderApiComposer.Compose(Composition composition)
      at Umbraco.Core.Composing.Composers.Compose() in d:\a\1\s\src\Umbraco.Core\Composing\Composers.cs:line 67
      at Umbraco.Core.Runtime.CoreRuntime.Boot(IRegister register, DisposableTimer timer) in d:\a\1\s\src\Umbraco.Core\Runtime\CoreRuntime.cs:line 152
    

    The log file isn't of any more help to me:

    {"@t":"2019-10-14T14:47:33.0493076Z","@mt":"{StartMessage} [Timing {TimingId}]","StartMessage":"Booting Umbraco 8.1.5.","TimingId":"1e0d71a","SourceContext":"Umbraco.Core.Runtime.CoreRuntime","ProcessId":13124,"ProcessName":"iisexpress","ThreadId":6,"AppDomainId":4,"AppDomainAppId":"LMW3SVC2ROOT","MachineName":"RAGI-WORK","Log4NetLevel":"INFO ","HttpRequestNumber":1,"HttpRequestId":"8ed022c5-6067-4df1-aaa1-3fc645fd9f04"}
    {"@t":"2019-10-14T14:47:33.0573073Z","@mt":"Booting site '{HostingSiteName}', app '{HostingApplicationID}', path '{HostingPhysicalPath}', server '{MachineName}'.","HostingSiteName":"WeiswampachCms-Umbraco8","HostingApplicationID":"/LM/W3SVC/2/ROOT","HostingPhysicalPath":"C:\\Users\\ragi\\onedrive\\development\\WeiswampachCms-Umbraco8\\WeiswampachCms-Umbraco8\\","MachineName":"RAGI-WORK","SourceContext":"Umbraco.Core.Runtime.CoreRuntime","ProcessId":13124,"ProcessName":"iisexpress","ThreadId":6,"AppDomainId":4,"AppDomainAppId":"LMW3SVC2ROOT","Log4NetLevel":"INFO ","HttpRequestNumber":1,"HttpRequestId":"8ed022c5-6067-4df1-aaa1-3fc645fd9f04"}
    {"@t":"2019-10-14T14:47:33.0863094Z","@mt":"Acquiring.","SourceContext":"Umbraco.Core.MainDom","ProcessId":13124,"ProcessName":"iisexpress","ThreadId":6,"AppDomainId":4,"AppDomainAppId":"LMW3SVC2ROOT","MachineName":"RAGI-WORK","Log4NetLevel":"INFO ","HttpRequestNumber":1,"HttpRequestId":"8ed022c5-6067-4df1-aaa1-3fc645fd9f04"}
    {"@t":"2019-10-14T14:47:33.0873073Z","@mt":"Acquired.","SourceContext":"Umbraco.Core.MainDom","ProcessId":13124,"ProcessName":"iisexpress","ThreadId":6,"AppDomainId":4,"AppDomainAppId":"LMW3SVC2ROOT","MachineName":"RAGI-WORK","Log4NetLevel":"INFO ","HttpRequestNumber":1,"HttpRequestId":"8ed022c5-6067-4df1-aaa1-3fc645fd9f04"}
    {"@t":"2019-10-14T14:47:33.4143069Z","@mt":"{StartMessage} [Timing {TimingId}]","StartMessage":"Resolving composer types.","TimingId":"bba3545","SourceContext":"Umbraco.Core.Runtime.CoreRuntime","ProcessId":13124,"ProcessName":"iisexpress","ThreadId":6,"AppDomainId":4,"AppDomainAppId":"LMW3SVC2ROOT","MachineName":"RAGI-WORK","Log4NetLevel":"INFO ","HttpRequestNumber":1,"HttpRequestId":"8ed022c5-6067-4df1-aaa1-3fc645fd9f04"}
    {"@t":"2019-10-14T14:47:33.6293108Z","@mt":"{EndMessage} ({Duration}ms) [Timing {TimingId}]","EndMessage":"Resolved.","Duration":214,"TimingId":"bba3545","SourceContext":"Umbraco.Core.Runtime.CoreRuntime","ProcessId":13124,"ProcessName":"iisexpress","ThreadId":6,"AppDomainId":4,"AppDomainAppId":"LMW3SVC2ROOT","MachineName":"RAGI-WORK","Log4NetLevel":"INFO ","HttpRequestNumber":1,"HttpRequestId":"8ed022c5-6067-4df1-aaa1-3fc645fd9f04"}
    {"@t":"2019-10-14T14:47:34.1373097Z","@mt":"{FailMessage} ({Duration}ms) [Timing {TimingId}]","@l":"Error","@x":"Umbraco.Core.Exceptions.BootFailedException: Boot failed. ---> System.TypeLoadException: Could not load type 'Umbraco.Core.Composing.TypeCollectionBuilderBase`2' from assembly 'Umbraco.Core, Version=8.0.0.0, Culture=neutral, PublicKeyToken=null'.\r\n   at Umbraco.ModelsBuilder.Api.ModelsBuilderApiComposer.Compose(Composition composition)\r\n   at Umbraco.Core.Composing.Composers.Compose() in d:\\a\\1\\s\\src\\Umbraco.Core\\Composing\\Composers.cs:line 67\r\n   at Umbraco.Core.Runtime.CoreRuntime.Boot(IRegister register, DisposableTimer timer) in d:\\a\\1\\s\\src\\Umbraco.Core\\Runtime\\CoreRuntime.cs:line 152\r\n   --- End of inner exception stack trace ---","FailMessage":"Boot failed.","Duration":1095,"TimingId":"1e0d71a","SourceContext":"Umbraco.Core.Runtime.CoreRuntime","ProcessId":13124,"ProcessName":"iisexpress","ThreadId":6,"AppDomainId":4,"AppDomainAppId":"LMW3SVC2ROOT","MachineName":"RAGI-WORK","Log4NetLevel":"ERROR","HttpRequestNumber":1,"HttpRequestId":"8ed022c5-6067-4df1-aaa1-3fc645fd9f04"}
    {"@t":"2019-10-14T14:47:35.0713093Z","@mt":"An unhandled exception occurred","@l":"Error","@x":"Umbraco.Core.Exceptions.BootFailedException: Boot failed: Umbraco cannot run. See Umbraco's log file for more details.\n\n-> Umbraco.Core.Exceptions.BootFailedException: Boot failed.\n\n-> System.TypeLoadException: Could not load type 'Umbraco.Core.Composing.TypeCollectionBuilderBase`2' from assembly 'Umbraco.Core, Version=8.0.0.0, Culture=neutral, PublicKeyToken=null'.\n   at Umbraco.ModelsBuilder.Api.ModelsBuilderApiComposer.Compose(Composition composition)\r\n   at Umbraco.Core.Composing.Composers.Compose() in d:\\a\\1\\s\\src\\Umbraco.Core\\Composing\\Composers.cs:line 67\r\n   at Umbraco.Core.Runtime.CoreRuntime.Boot(IRegister register, DisposableTimer timer) in d:\\a\\1\\s\\src\\Umbraco.Core\\Runtime\\CoreRuntime.cs:line 152\r\n   at Umbraco.Core.Exceptions.BootFailedException.Rethrow(BootFailedException bootFailedException) in d:\\a\\1\\s\\src\\Umbraco.Core\\Exceptions\\BootFailedException.cs:line 57\r\n   at Umbraco.Web.UmbracoInjectedModule.<>c.<Init>b__23_0(Object sender, EventArgs args) in d:\\a\\1\\s\\src\\Umbraco.Web\\UmbracoInjectedModule.cs:line 438\r\n   at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()\r\n   at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)\r\n   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)","SourceContext":"Umbraco.Web.UmbracoApplicationBase","ProcessId":13124,"ProcessName":"iisexpress","ThreadId":13,"AppDomainId":4,"AppDomainAppId":"LMW3SVC2ROOT","MachineName":"RAGI-WORK","Log4NetLevel":"ERROR","HttpRequestNumber":2,"HttpRequestId":"814e8800-afae-47b7-9bb8-64390a08e5c9"}
    

    I really don't know what could cause this?

    My Dev Site runs on a SQLCE Database.

    I hope someone can help me?

    Regards

    Gilles

  • Steve Megson 151 posts 1022 karma points MVP c-trib
    Oct 14, 2019 @ 16:05
    Steve Megson
    0

    It looks like you have an old version of the Umbraco.ModelsBuilder.Api package. Updating it to the latest version should fix it.

    There was a breaking change to Umbraco.Core.Composing.TypeCollectionBuilderBase in Umbraco 8.1.0 which means you need a version of Umbraco.ModelsBuilder.Api which was built against Umbraco 8.1.0 or later.

  • Gilles 25 posts 107 karma points
    Oct 15, 2019 @ 06:24
    Gilles
    0

    Thank you so much @Steve Megson. That was it.

    ModelsBuilder is such an important part of Umbraco that I simply didn't remember that it's a separate NuGet package :-) (also, this is my first and currently single Umbraco site, so I'm not very experienced with upgrading it)

Please Sign in or register to post replies

Write your reply to:

Draft