Copied to clipboard

Flag this post as spam?

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


  • bh 444 posts 1544 karma points
    Mar 15, 2019 @ 19:56
    bh
    2

    v8 Boot Failed

    v8 Boot Failed Error Message. I have no idea what to do with this, but i'm hosed. Any suggestions?

    {"@t":"2019-03-15T19:46:48.1328680Z","@mt":"{FailMessage} ({Duration}ms) [Timing {TimingId}]","@l":"Error","@x":"Umbraco.Core.Exceptions.BootFailedException: Boot failed. ---> System.InvalidOperationException: Unable to resolve type: Umbraco.Core.Composing.ComponentCollection, service name:  ---> System.InvalidOperationException: Unable to resolve type: Umbraco.Web.Runtime.WebRuntimeComponent, service name:  ---> System.InvalidOperationException: Unresolved dependency [Target Type: Umbraco.Web.Runtime.WebRuntimeComponent], [Parameter: publishedSnapshotService(Umbraco.Web.PublishedCache.IPublishedSnapshotService)], [Requested dependency: ServiceType:Umbraco.Web.PublishedCache.IPublishedSnapshotService, ServiceName:] ---> System.InvalidOperationException: Unresolved dependency [Target Type: Umbraco.Web.PublishedCache.NuCache.PublishedSnapshotService], [Parameter: publishedContentTypeFactory(Umbraco.Core.Models.PublishedContent.IPublishedContentTypeFactory)], [Requested dependency: ServiceType:Umbraco.Core.Models.PublishedContent.IPublishedContentTypeFactory, ServiceName:] ---> System.InvalidOperationException: Unresolved dependency [Target Type: Umbraco.Core.Models.PublishedContent.PublishedContentTypeFactory], [Parameter: publishedModelFactory(Umbraco.Core.Models.PublishedContent.IPublishedModelFactory)], [Requested dependency: ServiceType:Umbraco.Core.Models.PublishedContent.IPublishedModelFactory, ServiceName:] ---> System.InvalidOperationException: Both types 'Umbraco.Web.PublishedModels.NcPastSpeaker, Umbraco.Web.PublishedModels, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' and 'Umbraco.Web.PublishedModels.NcPastSpeaker, reclt.com, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' want to be a model type for content type with alias \"ncPastSpeaker\".\r\n   at Umbraco.Core.Models.PublishedContent.PublishedModelFactory..ctor(IEnumerable`1 types)\r\n   at Umbraco.ModelsBuilder.Umbraco.ModelsBuilderComposer.<>c.<ComposeForDefaultModelsFactory>b__1_0(IFactory factory) in D:\\d\\Zbu ModelsBuilder\\src\\Umbraco.ModelsBuilder\\Umbraco\\ModelsBuilderComposer.cs:line 33\r\n   at Umbraco.Core.Composing.LightInject.LightInjectContainer.<>c__DisplayClass20_0`1.<Register>b__0(IServiceFactory f)\r\n   at DynamicMethod(Object[] )\r\n   at LightInject.ServiceContainer.<>c__DisplayClass150_0.<WrapAsFuncDelegate>b__0() in C:\\projects\\lightinject\\src\\LightInject\\LightInject.cs:line 3798\r\n   at LightInject.ServiceContainer.<>c__DisplayClass198_0.<EmitLifetime>b__1() in C:\\projects\\lightinject\\src\\LightInject\\LightInject.cs:line 4657\r\n   at LightInject.PerContainerLifetime.GetInstance(Func`1 createInstance, Scope scope) in C:\\projects\\lightinject\\src\\LightInject\\LightInject.cs:line 6169\r\n   at LightInject.ServiceContainer.EmitLifetime(ServiceRegistration serviceRegistration, Action`1 emitMethod, IEmitter emitter) in C:\\projects\\lightinject\\src\\LightInject\\LightInject.cs:line 4656\r\n   at LightInject.ServiceContainer.<>c__DisplayClass197_0.<ResolveEmitMethod>b__1(IEmitter methodSkeleton) in C:\\projects\\lightinject\\src\\LightInject\\LightInject.cs:line 4649\r\n   at LightInject.ServiceContainer.<>c__DisplayClass153_0.<CreateEmitMethodWrapper>b__0(IEmitter ms) in C:\\projects\\lightinject\\src\\LightInject\\LightInject.cs:line 3856\r\n   at LightInject.ServiceContainer.EmitConstructorDependency(IEmitter emitter, Dependency dependency) in C:\\projects\\lightinject\\src\\LightInject\\LightInject.cs:line 4158\r\n   --- End of inner exception stack trace ---\r\n   at LightInject.ServiceContainer.EmitConstructorDependency(IEmitter emitter, Dependency dependency) in C:\\projects\\lightinject\\src\\LightInject\\LightInject.cs:line 4163\r\n   at LightInject.ServiceContainer.EmitConstructorDependencies(ConstructionInfo constructionInfo, IEmitter emitter, Action`1 decoratorTargetEmitter) in C:\\projects\\lightinject\\src\\LightInject\\LightInject.cs:line 4120\r\n   at LightInject.ServiceContainer.EmitNewInstanceUsingImplementingType(IEmitter emitter, ConstructionInfo constructionInfo, Action`1 decoratorTargetEmitMethod) in C:\\projects\\lightinject\\src\\LightInject\\LightInject.cs:line 4080\r\n   at LightInject.ServiceContainer.EmitNewInstance(ServiceRegistration serviceRegistration, IEmitter emitter) in C:\\projects\\lightinject\\src\\LightInject\\LightInject.cs:line 4034\r\n   at LightInject.ServiceContainer.EmitNewInstanceWithDecorators(ServiceRegistration serviceRegistration, IEmitter emitter) in C:\\projects\\lightinject\\src\\LightInject\\LightInject.cs:line 3929\r\n   at LightInject.ServiceContainer.<>c__DisplayClass197_0.<ResolveEmitMethod>b__2(IEmitter ms) in C:\\projects\\lightinject\\src\\LightInject\\LightInject.cs:line 4649\r\n   at LightInject.ServiceContainer.CreateDynamicMethodDelegate(Action`1 serviceEmitter) in C:\\projects\\lightinject\\src\\LightInject\\LightInject.cs:line 3776\r\n   at LightInject.ServiceContainer.<>c__DisplayClass198_0.<EmitLifetime>b__1() in C:\\projects\\lightinject\\src\\LightInject\\LightInject.cs:line 4657\r\n   at LightInject.PerContainerLifetime.GetInstance(Func`1 createInstance, Scope scope) in C:\\projects\\lightinject\\src\\LightInject\\LightInject.cs:line 6169\r\n   at LightInject.ServiceContainer.EmitLifetime(ServiceRegistration serviceRegistration, Action`1 emitMethod, IEmitter emitter) in C:\\projects\\lightinject\\src\\LightInject\\LightInject.cs:line 4656\r\n   at LightInject.ServiceContainer.<>c__DisplayClass197_0.<ResolveEmitMethod>b__1(IEmitter methodSkeleton) in C:\\projects\\lightinject\\src\\LightInject\\LightInject.cs:line 4649\r\n   at LightInject.ServiceContainer.<>c__DisplayClass153_0.<CreateEmitMethodWrapper>b__0(IEmitter ms) in C:\\projects\\lightinject\\src\\LightInject\\LightInject.cs:line 3856\r\n   at LightInject.ServiceContainer.EmitConstructorDependency(IEmitter emitter, Dependency dependency) in C:\\projects\\lightinject\\src\\LightInject\\LightInject.cs:line 4158\r\n   --- End of inner exception stack trace ---\r\n   at LightInject.ServiceContainer.EmitConstructorDependency(IEmitter emitter, Dependency dependency) in C:\\projects\\lightinject\\src\\LightInject\\LightInject.cs:line 4163\r\n   at LightInject.ServiceContainer.EmitConstructorDependencies(ConstructionInfo constructionInfo, IEmitter emitter, Action`1 decoratorTargetEmitter) in C:\\projects\\lightinject\\src\\LightInject\\LightInject.cs:line 4120\r\n   at LightInject.ServiceContainer.EmitNewInstanceUsingImplementingType(IEmitter emitter, ConstructionInfo constructionInfo, Action`1 decoratorTargetEmitMethod) in C:\\projects\\lightinject\\src\\LightInject\\LightInject.cs:line 4080\r\n   at LightInject.ServiceContainer.EmitNewInstance(ServiceRegistration serviceRegistration, IEmitter emitter) in C:\\projects\\lightinject\\src\\LightInject\\LightInject.cs:line 4034\r\n   at LightInject.ServiceContainer.EmitNewInstanceWithDecorators(ServiceRegistration serviceRegistration, IEmitter emitter) in C:\\projects\\lightinject\\src\\LightInject\\LightInject.cs:line 3929\r\n   at LightInject.ServiceContainer.<>c__DisplayClass197_0.<ResolveEmitMethod>b__2(IEmitter ms) in C:\\projects\\lightinject\\src\\LightInject\\LightInject.cs:line 4649\r\n   at LightInject.ServiceContainer.CreateDynamicMethodDelegate(Action`1 serviceEmitter) in C:\\projects\\lightinject\\src\\LightInject\\LightInject.cs:line 3776\r\n   at LightInject.ServiceContainer.<>c__DisplayClass198_0.<EmitLifetime>b__1() in C:\\projects\\lightinject\\src\\LightInject\\LightInject.cs:line 4657\r\n   at LightInject.PerContainerLifetime.GetInstance(Func`1 createInstance, Scope scope) in C:\\projects\\lightinject\\src\\LightInject\\LightInject.cs:line 6169\r\n   at LightInject.ServiceContainer.EmitLifetime(ServiceRegistration serviceRegistration, Action`1 emitMethod, IEmitter emitter) in C:\\projects\\lightinject\\src\\LightInject\\LightInject.cs:line 4656\r\n   at LightInject.ServiceContainer.<>c__DisplayClass197_0.<ResolveEmitMethod>b__1(IEmitter methodSkeleton) in C:\\projects\\lightinject\\src\\LightInject\\LightInject.cs:line 4649\r\n   at LightInject.ServiceContainer.<>c__DisplayClass153_0.<CreateEmitMethodWrapper>b__0(IEmitter ms) in C:\\projects\\lightinject\\src\\LightInject\\LightInject.cs:line 3856\r\n   at LightInject.ServiceContainer.EmitConstructorDependency(IEmitter emitter, Dependency dependency) in C:\\projects\\lightinject\\src\\LightInject\\LightInject.cs:line 4158\r\n   --- End of inner exception stack trace ---\r\n   at LightInject.ServiceContainer.EmitConstructorDependency(IEmitter emitter, Dependency dependency) in C:\\projects\\lightinject\\src\\LightInject\\LightInject.cs:line 4163\r\n   at LightInject.ServiceContainer.EmitConstructorDependencies(ConstructionInfo constructionInfo, IEmitter emitter, Action`1 decoratorTargetEmitter) in C:\\projects\\lightinject\\src\\LightInject\\LightInject.cs:line 4120\r\n   at LightInject.ServiceContainer.EmitNewInstanceUsingImplementingType(IEmitter emitter, ConstructionInfo constructionInfo, Action`1 decoratorTargetEmitMethod) in C:\\projects\\lightinject\\src\\LightInject\\LightInject.cs:line 4080\r\n   at LightInject.ServiceContainer.EmitNewInstance(ServiceRegistration serviceRegistration, IEmitter emitter) in C:\\projects\\lightinject\\src\\LightInject\\LightInject.cs:line 4034\r\n   at LightInject.ServiceContainer.EmitNewInstanceWithDecorators(ServiceRegistration serviceRegistration, IEmitter emitter) in C:\\projects\\lightinject\\src\\LightInject\\LightInject.cs:line 3929\r\n   at LightInject.ServiceContainer.<>c__DisplayClass197_0.<ResolveEmitMethod>b__0(IEmitter methodSkeleton) in C:\\projects\\lightinject\\src\\LightInject\\LightInject.cs:line 4646\r\n   at LightInject.ServiceContainer.<>c__DisplayClass153_0.<CreateEmitMethodWrapper>b__0(IEmitter ms) in C:\\projects\\lightinject\\src\\LightInject\\LightInject.cs:line 3856\r\n   at LightInject.ServiceContainer.CreateDynamicMethodDelegate(Action`1 serviceEmitter) in C:\\projects\\lightinject\\src\\LightInject\\LightInject.cs:line 3776\r\n   at LightInject.ServiceContainer.CreateDelegate(Type serviceType, String serviceName, Boolean throwError) in C:\\projects\\lightinject\\src\\LightInject\\LightInject.cs:line 4743\r\n   --- End of inner exception stack trace ---\r\n   at LightInject.ServiceContainer.CreateDelegate(Type serviceType, String serviceName, Boolean throwError) in C:\\projects\\lightinject\\src\\LightInject\\LightInject.cs:line 4748\r\n   at LightInject.ServiceContainer.CreateDefaultDelegate(Type serviceType, Boolean throwError) in C:\\projects\\lightinject\\src\\LightInject\\LightInject.cs:line 4705\r\n   at LightInject.ServiceContainer.GetInstance(Type serviceType) in C:\\projects\\lightinject\\src\\LightInject\\LightInject.cs:line 3437\r\n   at Umbraco.Core.Composing.LightInject.LightInjectContainer.GetInstance(Type type)\r\n   at Umbraco.Core.Composing.ComponentCollectionBuilder.CreateItem(IFactory factory, Type itemType)\r\n   at Umbraco.Core.Composing.CollectionBuilderBase`3.<>c__DisplayClass10_0.<CreateItems>b__0(Type x)\r\n   at System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()\r\n   at System.Linq.Buffer`1..ctor(IEnumerable`1 source)\r\n   at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)\r\n   at Umbraco.Core.Composing.CollectionBuilderBase`3.CreateItems(IFactory factory)\r\n   at Umbraco.Core.Composing.ComponentCollectionBuilder.CreateItems(IFactory factory)\r\n   at Umbraco.Core.Composing.CollectionBuilderBase`3.CreateCollection(IFactory factory)\r\n   at Umbraco.Core.Composing.LightInject.LightInjectContainer.<>c__DisplayClass20_0`1.<Register>b__0(IServiceFactory f)\r\n   at DynamicMethod(Object[] )\r\n   at LightInject.ServiceContainer.<>c__DisplayClass150_0.<WrapAsFuncDelegate>b__0() in C:\\projects\\lightinject\\src\\LightInject\\LightInject.cs:line 3798\r\n   at LightInject.ServiceContainer.<>c__DisplayClass198_0.<EmitLifetime>b__1() in C:\\projects\\lightinject\\src\\LightInject\\LightInject.cs:line 4657\r\n   at LightInject.PerContainerLifetime.GetInstance(Func`1 createInstance, Scope scope) in C:\\projects\\lightinject\\src\\LightInject\\LightInject.cs:line 6169\r\n   at LightInject.ServiceContainer.EmitLifetime(ServiceRegistration serviceRegistration, Action`1 emitMethod, IEmitter emitter) in C:\\projects\\lightinject\\src\\LightInject\\LightInject.cs:line 4656\r\n   at LightInject.ServiceContainer.<>c__DisplayClass197_0.<ResolveEmitMethod>b__1(IEmitter methodSkeleton) in C:\\projects\\lightinject\\src\\LightInject\\LightInject.cs:line 4649\r\n   at LightInject.ServiceContainer.<>c__DisplayClass153_0.<CreateEmitMethodWrapper>b__0(IEmitter ms) in C:\\projects\\lightinject\\src\\LightInject\\LightInject.cs:line 3856\r\n   at LightInject.ServiceContainer.CreateDynamicMethodDelegate(Action`1 serviceEmitter) in C:\\projects\\lightinject\\src\\LightInject\\LightInject.cs:line 3776\r\n   at LightInject.ServiceContainer.CreateDelegate(Type serviceType, String serviceName, Boolean throwError) in C:\\projects\\lightinject\\src\\LightInject\\LightInject.cs:line 4743\r\n   --- End of inner exception stack trace ---\r\n   at LightInject.ServiceContainer.CreateDelegate(Type serviceType, String serviceName, Boolean throwError) in C:\\projects\\lightinject\\src\\LightInject\\LightInject.cs:line 4748\r\n   at LightInject.ServiceContainer.CreateDefaultDelegate(Type serviceType, Boolean throwError) in C:\\projects\\lightinject\\src\\LightInject\\LightInject.cs:line 4705\r\n   at LightInject.ServiceContainer.GetInstance(Type serviceType) in C:\\projects\\lightinject\\src\\LightInject\\LightInject.cs:line 3437\r\n   at Umbraco.Core.Composing.LightInject.LightInjectContainer.GetInstance(Type type)\r\n   at Umbraco.Core.FactoryExtensions.GetInstance[T](IFactory factory)\r\n   at Umbraco.Core.Runtime.CoreRuntime.Boot(IRegister register, DisposableTimer timer)\r\n   --- End of inner exception stack trace ---","FailMessage":"Boot failed.","Duration":7661,"TimingId":"803c44f","SourceContext":"Umbraco.Core.Runtime.CoreRuntime","ProcessId":32184,"ProcessName":"iisexpress","ThreadId":1,"AppDomainId":2,"AppDomainAppId":"LMW3SVC2ROOT","MachineName":"HUDSONB-LT","Log4NetLevel":"ERROR","HttpRequestNumber":1,"HttpRequestId":"81b0e234-d3ae-49ce-aada-01d074a6b314"}
    
  • bh 444 posts 1544 karma points
    Mar 18, 2019 @ 14:20
    bh
    102

    Figured it out. I had included my Models folder for Publishing my site. Doing that caused the Models to effectively get compiled twice. Excluded the Models and rebuilt and everything is copacetic now.

  • Ross 16 posts 107 karma points
    Mar 20, 2019 @ 12:04
    Ross
    1

    Do you still get strongly typed models (document types) in places like controllers or infrastructure logic?

    I had the same problem (Both types want to be a model type for content type with alias..) and as you say it can be resolved by excluding models from project but I found that meant I couldn't use strongly typed models anywhere other than views. For me the solution was to delete the temp and cache folders in App_Data. The ModelsBuilder's mode I use is "AppData"

    Thanks, Ross

  • bh 444 posts 1544 karma points
    Mar 20, 2019 @ 12:33
    bh
    0

    I'm using DLL mode. I typically do my work in the views. Thanks for adding your solution to this thread! Hope it helps someone in the future!

  • Thomsen 113 posts 336 karma points
    Mar 20, 2019 @ 21:43
    Thomsen
    0

    Did you make it work so that you can use the strongly typed models in controllers etc.?

    When I follow your solution by deleting the TEMP and cache folders and setting the models builder mode to "AppData" I still get the "Boot failed"-error. I can exclude the Models folder from App_Data and everything works again, but then I can't use the strongly typed models from anywere outside my views.

    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: 
      ved LightInject.ServiceContainer.CreateDelegate(Type serviceType, String serviceName, Boolean throwError) i C:\projects\lightinject\src\LightInject\LightInject.cs:linje 4748
      ved LightInject.ServiceContainer.CreateDefaultDelegate(Type serviceType, Boolean throwError) i C:\projects\lightinject\src\LightInject\LightInject.cs:linje 4705
      ved LightInject.ServiceContainer.GetInstance(Type serviceType) i C:\projects\lightinject\src\LightInject\LightInject.cs:linje 3437
      ved Umbraco.Core.Composing.LightInject.LightInjectContainer.GetInstance(Type type)
      ved Umbraco.Core.FactoryExtensions.GetInstance[T](IFactory factory)
      ved Umbraco.Core.Runtime.CoreRuntime.Boot(IRegister register, DisposableTimer timer)
    
  • Ross 16 posts 107 karma points
    Mar 20, 2019 @ 23:13
    Ross
    0

    Yes, I am using strongly typed models in controllers and custom routing logic. I think there is something else to it as well - hoping someone with more experience of ModelsBuilder can confirm.. I have moved my models to a separate project (though it shouldn't be necessary for fixing this) and have also set the models namespace in web.config to the new location. https://github.com/zpqrtbnk/Zbu.ModelsBuilder/wiki/Install-And-Configure

    Umbraco.ModelsBuilder.ModelsNamespace (string, default is Umbraco.Web.PublishedContentModels) specifies the generated models namespace.

    The error says that both types (your generated type and the one in Umbraco.Web.PublishedContentModels namespace) want to be model for your type. Because of that I also made sure that in views the referenced models were pointed to my generated models in the specific location, i.e if you hover over your model in the view, make sure it's not the default: Umbraco.Web.PublishedContentModels.Doctypename but the model in your specified location (Entities.DocTypes.Doctypename)

    Hope that helps, Ross

  • Thomsen 113 posts 336 karma points
    Mar 21, 2019 @ 08:43
    Thomsen
    0

    Hi Ross. Thanks a lot for the explanation and for clarifying ..! I will try make it work by moving the models to a new location.

  • wehbi habli 1 post 73 karma points
    Apr 05, 2019 @ 11:18
    wehbi habli
    2

    try the below:

    1. Remove all the references of the old umbraco model builders in your solution ex: using Umbraco.Web.PublishedModel
    2. Delete Cache folder
    3. List item
    4. Delete Models folder under app data if exist
    5. Delete Umbraco.Web.PublishedModels.dll if exist
  • danielibanez 8 posts 76 karma points
    Jan 24, 2020 @ 18:50
    danielibanez
    1

    As others have mentioned this happens when theirs a conflict between model builders. I deleted my Umbraco.Web.PublishedModels.dll in bin and it resolved my problem.

    My models are in a models folder and are strongly typed and accessible through Umbraco.Web.PublishedModels using AppData.

    I strongly recommend AppData since PureLive is inaccessible and DLL doesn't show you the models in your solutions explorer.

    Use Umbraco.ModelsBuilder.ModelsDirectory in your Web.config to save your models in any folder you'd like.

    Lastly, this problem gave me a skipped loading symbols/just my code error in Visual Studio. Deleting my DLL models fixed both issues.

Please Sign in or register to post replies

Write your reply to:

Draft