Skip to content

Unable to use readnextasync on feediterator in Version 3.45.2, getting error: unable to load assembly system.diagnostics.diagnosticsource 8.0.0.0 #4903

@Chays21

Description

@Chays21

We are continuously addressing and improving the SDK, if possible, make sure the problem persist in the 3.45.2.

Describe the bug
FeedIterator.ReadNextAsync method throws System.IO.IO for System.Diagnostics.DiagnosticSource 8.0.0.0. however I did not face this issue with older version 3.40.0.

To Reproduce
Create a function app project that runs in process functions, targeting framework net 6.0. Install Microsoft.Azure.Cosmos 3.45.2. Create a Cosmos Client and container. try with the below code.
Image

Expected behavior
ReadNextAsync should not throw this exception

Actual behavior
FeedIterator.ReadNextAsync method throws System.IO.IO for System.Diagnostics.DiagnosticSource 8.0.0.0

Environment summary
SDK Version: Microsoft.NET.SDK.Functions 4.2.0
OS Version (e.g. Windows, Linux, MacOSX) : Windows

Additional context
Add any other context about the problem here (for example, complete stack traces or logs).

Package references in my project:

Image

Exception details:

Image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions