An internal error occurred during your request!
Is there an existing issue for this?
- [x] I have searched the existing issues
Description
Problem
An error has occured! An internal error occurred during your request!
Details
System.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.
at void Autofac.Core.Lifetime.LifetimeScope.ThrowDisposedException()
at object Autofac.Core.Lifetime.LifetimeScope.ResolveComponent(in ResolveRequest request)
at object Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
at T Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService
Version
1.0.1
Operation System
Windows (Default)
Solution Configuration
No response
Other information
This issue has been reported from ABP Studio.
hi @hamzash750
Can you share the code and steps to reproduce this exception?
Thanks.
Hi @maliming
I'm not exactly sure what caused it, but I was working on the Auth API when my system froze, and I couldn’t perform any actions. I ended up restarting my system. After the restart, when I launched ABP Studio and selected my solution from the welcome page, an error occurred and the solution didn’t open. I then closed ABP Studio and tried opening the solution again — this time it loaded without any issues.
Hi
You can try to run apps by dotnet run command.
Looks transient — it loaded fine on retry and we can't reproduce the ObjectDisposedException. Closing; reopen with repro steps if it comes back.