Closed reservoir-dogs closed 4 years ago
Thanks for reporting this issue, I'll look into it soon!
Hey, I found the issue, the fix will be in the next version, until that you can get rid of the error by configuring Stashbox like this:
Host.CreateDefaultBuilder(args)
.UseStashbox(container => container.Configure(config => config.WithOptionalAndDefaultValueInjection()))
.ConfigureWebHostDefaults(webBuilder =>
{
webBuilder.UseStartup<Startup>();
});
I tested it and it works! Thanks for your reactivity, that's key of success. When will you release the next version ?
Not sure yet, i have to cover some other issues first, I'll notify you when it's out. Then you can remove that config, it'll be part of the default functionality.
I can't use both : Microsoft.ApplicationInsights.AspNetCore 2.13.1 Stashbox.Extensions.Hosting 2.8.6
Can I help me ?
My Startup :
If i comment one or another, it works.
To reproduce use my repo : https://github.com/reservoir-dogs/WebApplicationWithStashBoxAndAppInsights
Exception is :
Show raw exception details .NET Core 3.1.3 X64 v4.0.0.0 | Microsoft.AspNetCore.Hosting version 3.1.3