Skip to content

Conversation

@claudiamurialdo
Copy link
Collaborator

Fixes the error:
System.ObjectDisposedException: IFeatureCollection has been disposed.
Object name: 'Collection'.
at Microsoft.AspNetCore.Http.Features.FeatureReferences`1.ThrowContextDisposed()
at Microsoft.AspNetCore.Http.DefaultHttpContext.get_Session()
According to:
https://github.com/davidfowl/AspNetCoreDiagnosticScenarios/blob/master/AspNetCoreGuidance.md#do-not-store-ihttpcontextaccessorhttpcontext-in-a-field

when executing concurrent rest services instances.

Fixes the error:
System.ObjectDisposedException: IFeatureCollection has been disposed.
Object name: 'Collection'.
   at Microsoft.AspNetCore.Http.Features.FeatureReferences`1.ThrowContextDisposed()
   at Microsoft.AspNetCore.Http.DefaultHttpContext.get_Session()
 According to:
https://github.com/davidfowl/AspNetCoreDiagnosticScenarios/blob/master/AspNetCoreGuidance.md#do-not-store-ihttpcontextaccessorhttpcontext-in-a-field
@claudiamurialdo claudiamurialdo requested a review from sjuarezgx May 25, 2022 00:47
@genexusbot
Copy link
Collaborator

Cherry pick to beta success

@claudiamurialdo claudiamurialdo had a problem deploying to external-storage-tests May 25, 2022 00:47 Failure
@claudiamurialdo claudiamurialdo had a problem deploying to external-storage-tests May 25, 2022 00:57 Failure
@genexusbot
Copy link
Collaborator

Cherry pick to beta success

@claudiamurialdo claudiamurialdo had a problem deploying to external-storage-tests May 25, 2022 01:00 Failure
@genexusbot
Copy link
Collaborator

Cherry pick to beta success

System.ObjectDisposedException: IFeatureCollection has been disposed.
Object name: 'Collection'.
   at Microsoft.AspNetCore.Http.Features.FeatureReferences`1.ThrowContextDisposed()
   at Microsoft.AspNetCore.Http.Features.FeatureReferences`1.ContextDisposed()
@genexusbot
Copy link
Collaborator

Cherry pick to beta success

@claudiamurialdo claudiamurialdo had a problem deploying to external-storage-tests May 25, 2022 14:59 Failure
@claudiamurialdo claudiamurialdo temporarily deployed to external-storage-tests May 25, 2022 15:31 Inactive
@genexusbot
Copy link
Collaborator

Cherry pick to beta success

@genexusbot
Copy link
Collaborator

Cherry pick to beta success

@claudiamurialdo claudiamurialdo had a problem deploying to external-storage-tests May 25, 2022 16:13 Failure
…core tests since GxContext.StaticPhysicalPath() returns a different value depending on the context (web or batch).
@genexusbot
Copy link
Collaborator

Cherry pick to beta success

@claudiamurialdo claudiamurialdo temporarily deployed to external-storage-tests May 25, 2022 16:49 Inactive
@genexusbot
Copy link
Collaborator

Cherry pick to beta success

@claudiamurialdo claudiamurialdo had a problem deploying to external-storage-tests May 25, 2022 18:06 Failure
@claudiamurialdo claudiamurialdo temporarily deployed to external-storage-tests May 25, 2022 19:35 Inactive
@claudiamurialdo claudiamurialdo temporarily deployed to external-storage-tests May 26, 2022 21:00 Inactive
@genexusbot
Copy link
Collaborator

Cherry pick to beta success

…e does not support it.

For writing json should be used WriteAsJsonAsync which is supported by GxHttpAzureResponse. Soon it will be analyzed.
@claudiamurialdo claudiamurialdo temporarily deployed to external-storage-tests May 28, 2022 19:06 Inactive
@genexusbot
Copy link
Collaborator

Cherry pick to beta success

@claudiamurialdo claudiamurialdo merged commit 6279578 into master May 31, 2022
@claudiamurialdo claudiamurialdo deleted the http-context-disposed branch May 31, 2022 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants