Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Umbraco 8 update is broken by missing dependency #17

Open
torerikk opened this issue Mar 22, 2023 · 2 comments
Open

Umbraco 8 update is broken by missing dependency #17

torerikk opened this issue Mar 22, 2023 · 2 comments
Labels
bug Something isn't working
Milestone

Comments

@torerikk
Copy link

torerikk commented Mar 22, 2023

I've had two different Umbraco 8 projects fail on boot when I try to update to 8.18.6 them with Metamomentum 2.1.1 or 2.2.0 (the two versions I've tried). The inner most exception I get is this:
System.InvalidOperationException: Unresolved dependency [Target Type: MetaMomentum.Core.ValueConverters.MetaMomentumValueConverter], [Parameter: metaMomentumConfig(MetaMomentum.Config.MetaMomentumConfig)], [Requested dependency: ServiceType:MetaMomentum.Config.MetaMomentumConfig, ServiceName:]

I think the issue is that MetaMomentumConfig is only registered for the Run runtime level and the MetaMomentumValueConverter is for some reason loaded during the upgrade and can't find the Config.

@torerikk
Copy link
Author

torerikk commented May 2, 2023

This problem also applies to Umbraco 8.18.7. Adding a composer to my code that registers MetaMomentumConfig with a runtime level attribute set to upgrade ( [RuntimeLevel(MinLevel = RuntimeLevel.Upgrade)] ) fixes this problem.

@dinc5150
Copy link
Contributor

dinc5150 commented Sep 5, 2023

Thanks for the update @torerikk, looks like the project is trying to use the ValueConverter during the update. I can't see any issued in changing the RuntimeLevel if its required. I'll try and reproduce / test and get an update out for you.

@dinc5150 dinc5150 added the bug Something isn't working label Sep 5, 2023
@dinc5150 dinc5150 added this to the Release 2.2.1 milestone Sep 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants