Copied to clipboard

Flag this post as spam?

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


  • Peter Szabo 8 posts 109 karma points
    Mar 18, 2020 @ 12:58
    Peter Szabo
    0

    Upgrade from 8.2.1 to 8.5.5 Fails

    I am trying to upgrade Umbraco from 8.2.1 to 8.5.5, but there is an error at boot time.

    "Attempt by method 'Umbraco.ModelsBuilder.Embedded.Compose.DisabledModelsBuilderComponent.Initialize()' to access method 'Umbraco.Web.Features.UmbracoFeatures.get_Disabled()' failed."
    
    Umbraco.Core.Exceptions.BootFailedException: Boot failed.
    
     System.MethodAccessException: Attempt by method 'Umbraco.ModelsBuilder.Embedded.Compose.DisabledModelsBuilderComponent.Initialize()' to access method 'Umbraco.Web.Features.UmbracoFeatures.get_Disabled()' failed.
        at Umbraco.ModelsBuilder.Embedded.Compose.DisabledModelsBuilderComponent.Initialize() in D:\a\1\s\src\Umbraco.ModelsBuilder.Embedded\Compose\DisabledModelsBuilderComponent.cs:line 23
        at Umbraco.Core.Composing.ComponentCollection.Initialize()
        at Umbraco.Core.Runtime.CoreRuntime.Boot(IRegister register, DisposableTimer timer)]
        Umbraco.Core.Exceptions.BootFailedException.Rethrow(BootFailedException bootFailedException) +226
        Umbraco.Web.<>c.<Init>b__18_0(Object sender, EventArgs args) +35
        System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +200
        System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +132
        System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +73
    

    I suspect it is related to the ModelsBuilder. My config is:

      <add key="Umbraco.ModelsBuilder.Enable" value="true" />
      <add key="Umbraco.ModelsBuilder.ModelsMode" value="Dll" />
    

    But I get the same error if I change it to:

      <add key="Umbraco.ModelsBuilder.Enable" value="false" />
      <add key="Umbraco.ModelsBuilder.ModelsMode" value="Nothing" />
    

    From the Umbraco Log file:

    Umbraco.Core.Exceptions.BootFailedException: Boot failed. ---> 
    System.MethodAccessException: Attempt by method 'Umbraco.ModelsBuilder.Embedded.Compose.DisabledModelsBuilderComponent.Initialize()' to access method 'Umbraco.Web.Features.UmbracoFeatures.get_Disabled()' failed.
       at Umbraco.ModelsBuilder.Embedded.Compose.DisabledModelsBuilderComponent.Initialize() in D:\\a\\1\\s\\src\\Umbraco.ModelsBuilder.Embedded\\Compose\\DisabledModelsBuilderComponent.cs:line 23
       at Umbraco.Core.Composing.ComponentCollection.Initialize()
       at Umbraco.Core.Runtime.CoreRuntime.Boot(IRegister register, DisposableTimer timer)
    
    
    Umbraco.Core.Exceptions.BootFailedException: Boot failed: Umbraco cannot run. See Umbraco's log file for more details.
    -> Umbraco.Core.Exceptions.BootFailedException: Boot failed.
    -> System.MethodAccessException: Attempt by method 'Umbraco.ModelsBuilder.Embedded.Compose.DisabledModelsBuilderComponent.Initialize()' to access method 'Umbraco.Web.Features.UmbracoFeatures.get_Disabled()' failed.\n   at Umbraco.ModelsBuilder.Embedded.Compose.DisabledModelsBuilderComponent.Initialize() in D:\\a\\1\\s\\src\\Umbraco.ModelsBuilder.Embedded\\Compose\\DisabledModelsBuilderComponent.cs:line 23
       at Umbraco.Core.Composing.ComponentCollection.Initialize()
       at Umbraco.Core.Runtime.CoreRuntime.Boot(IRegister register, DisposableTimer timer)
       at Umbraco.Core.Exceptions.BootFailedException.Rethrow(BootFailedException bootFailedException)
       at Umbraco.Web.UmbracoInjectedModule.<>c.<Init>b__18_0(Object sender, EventArgs args)
       at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
       at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
    

    Do you have any ideas what could have gone wrong or what to check?

  • Peter Szabo 8 posts 109 karma points
    Mar 19, 2020 @ 10:30
    Peter Szabo
    101

    OK, I fixed it.

    What I did:

    • upgrade first to v8.4.2
    • then to v8.5.5
    • deleted the whole bin folder
    • reinstalled Microsoft.CodeAnalysis.CSharp NuGet package
    • rebuild

    and now it is working.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies