-
-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WebApi: Attempt to end a scope before all child scopes are completed. #153
Comments
Try this
|
That did the trick. Now that you mentioned the scope manager I also found the 'Async/Await 'and 'OWIN selfhosting' sections in the documentation that would have pointed me into the right direction. Thank you very much for your help. |
You're welcome:) On Wednesday, January 7, 2015, paiden notifications@github.com wrote:
|
@seesharper I just got bitten by this too. Would you accept a pull request that makes |
On target frameworks where it’s available, default to using `PerLogicalCallContextScopeManagerProvider` instead of `PerThreadScopeManagerProvider`. See also seesharper#153.
I'm using LightInject in a ASP.NET WebApi project. When the API call exits, I sometimes get the error:
System.InvalidOperationException occurred
HResult=-2146233079
Message=Attempt to end a scope before all child scopes are completed.
Source=LightInject
StackTrace:
at LightInject.ScopeManager.EndScope(Scope scope) in c:\Users\bri\Documents\GitHub\LightInject\NuGet\Build\Net45\LightInject\LightInject.cs:line 4727
InnerException:
Additional information: Attempt to end a scope before all child scopes are completed.
I currently have no clue why I get this error.
More information about my project:
The text was updated successfully, but these errors were encountered: