banco-alimentar / alimentestaideia.pt

Site doações alimente esta ideia
http://alimentestaideia.pt
Other
10 stars 0 forks source link

ObjectDisposedException in dev #700

Closed tiagonmas closed 1 year ago

tiagonmas commented 1 year ago

Describe the bug

An unhandled exception occurred while processing the request. ObjectDisposedException: Instances cannot be resolved and nested lifetimes cannot be created from this LifetimeScope as it (or one of its parent scopes) has already been disposed. Autofac.Core.Lifetime.LifetimeScope.ThrowDisposedException()

Stack Query Cookies Headers Routing ObjectDisposedException: Instances cannot be resolved and nested lifetimes cannot be created from this LifetimeScope as it (or one of its parent scopes) has already been disposed. Autofac.Core.Lifetime.LifetimeScope.ThrowDisposedException() Autofac.Core.Lifetime.LifetimeScope.CheckNotDisposed() Autofac.Core.Lifetime.LifetimeScope.ResolveComponent(ResolveRequest request) Autofac.ResolutionExtensions.TryResolveService(IComponentContext context, Service service, IEnumerable parameters, out object instance) Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable parameters) Autofac.ResolutionExtensions.Resolve(IComponentContext context, Type serviceType, IEnumerable parameters) Autofac.ResolutionExtensions.Resolve(IComponentContext context, Type serviceType) Autofac.Extensions.DependencyInjection.AutofacServiceProvider.GetRequiredService(Type serviceType) Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType) Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider) Microsoft.AspNetCore.Mvc.Razor.RazorPageBase.get_TagHelperFactory() Microsoft.AspNetCore.Mvc.Razor.RazorPageBase.CreateTagHelper() BancoAlimentar.AlimentaEstaIdeia.Web.Pages.Pages_Index.ExecuteAsync() in Index.cshtml