https://discord.umbraco.com logo
#social
Title
# social
c

creativesuspects

12/06/2021, 6:20 PM
I'm getting a booted failed with a NullReferenceException when injecting custom services in a Component for a background task on v8.16.0. It fails on this line: https://github.com/umbraco/Umbraco-CMS/blob/f79ae63992f2ac9f6f7350b249e450dc767edbde/src/Umbraco.Web/Runtime/WebInitialComposer.cs#L70. Somewhere down the line of chained dependencies the MembershipHelper is being injected and I think this is causing the NullReferenceException, probably because there's no UmbracoContext in the background task. Any idea how I can work around this?