The statement serviceDescriptor.ImplementationInstance and serviceDescriptor.ImplementationType is throwing the exception. More info can be found here.
I'll just take an excerpt from the issue above:
The images above is a snippet of dotnet source code where accessing the getter of property ImplementationInstance and ImplementationType will throw the exception under certain condition.
I encountered the following runtime error when using the new .NET 8 Keyed Services in ASP.NET Boilerplate project.
This can be easily reproduced by adding the following line in
Startup.cs
file.Run the project and you'll be greeted with this:
I have tracked the problem to the following method on line
109
and potentially130
: https://github.com/volosoft/castle-windsor-ms-adapter/blob/641252c3b60dd8affeb5247b3c890564d918596a/src/Castle.Windsor.MsDependencyInjection/WindsorRegistrationHelper.cs#L105-L149The statement
serviceDescriptor.ImplementationInstance
andserviceDescriptor.ImplementationType
is throwing the exception. More info can be found here.I'll just take an excerpt from the issue above:
The images above is a snippet of dotnet source code where accessing the getter of property
ImplementationInstance
andImplementationType
will throw the exception under certain condition.This has been reported in the new
abp.io
framework. https://github.com/abpframework/abp/issues/18708I'm actually trying to use
AddStandardResilienceHandler()
inMicrosoft.Extensions.Http.Resilience
before encountering this issue: