-
Notifications
You must be signed in to change notification settings - Fork 495
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
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
Comments
Can you include the rest of |
I am not sure why you are getting error for 8.0.0 version but for your information, In SDK 3.45.0, We upgraded to Can you please make sure, DiagnosticSource library is getting loaded correctly with cosmosdb SDK |
We are experiencing practically the same problem. (Our failure is on an UpsertAsync. not ReadNextAsync.)
We tested the recent release versions one by one, and all else being equal:
I submit that it is not the user's responsibility to provide the correct version of DiagnosticsSource to Cosmos sdk, because our programs do not have a direct dependency to DiagnosticsSource. There is some problem when 3.45.0 was released, that introduced the dependency issue, because 3.44.1 works for us all else being equal. |
Can you include the callstack of the exception so that we can see what is trying to load the 8.0.0.0 version? |
We run into the same issue. Callstack:
|
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.
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:
Exception details:
The text was updated successfully, but these errors were encountered: