Skip to content
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

.NET Core 3.1 System.Interactive.Async assembly issues #207

Closed
TheSpy opened this issue Jul 8, 2020 · 9 comments
Closed

.NET Core 3.1 System.Interactive.Async assembly issues #207

TheSpy opened this issue Jul 8, 2020 · 9 comments

Comments

@TheSpy
Copy link

TheSpy commented Jul 8, 2020

Trying to run FirebaseAuth ListUsersAsync method an error is thrown
System.IO.FileNotFoundException: Could not load file or assembly 'System.Interactive.Async, Version=3.2.0.0, Culture=neutral, PublicKeyToken=94bc3704cddfc263'. The system cannot find the file specified.

code snippet

var e = _firebaseAuth.ListUsersAsync(null).GetAsyncEnumerator(); try { while (await e.MoveNextAsync()) { ... } } finally { if (e != null) { await e.DisposeAsync(); } }

Project has a dependency of a package Google.Cloud.PubSub.V1 ≥ 2.0.0, which is probably using latest Gax

Anyone knows how to fix this?

@hiranya911
Copy link
Contributor

Yes, it appears a version conflict between different versions of Gax. The 2.x version of Gax that we depend on has the following dependency:

<PackageReference Include="System.Interactive.Async" Version="3.2.0" />

This has been removed in the Gax 3.x version. We can start the migration process for latest Gax but it will likely be a while. In the meantime perhaps you can take an explicit dependency on the above assembly and make sure it's available to your app?

@TheSpy
Copy link
Author

TheSpy commented Jul 8, 2020

Thanks for reply.

I have tried that, unfortunately another error is thrown saying

System.NotImplementedException: The method or operation is not implemented.
at Google.Api.Gax.PagedAsyncEnumerable`2.GetAsyncEnumerator(CancellationToken cancellationToken)

@hiranya911
Copy link
Contributor

Can you try raising this at https://github.com/googleapis/gax-dotnet?

Given that the issue is caused by their libraries, they might have known workarounds. Only other immediate solution I can think of is downgrading your other PubSub dependency to something that uses Gax 2.x

@TheSpy
Copy link
Author

TheSpy commented Jul 8, 2020

Downgrading to an older PubSub version did help. This is good enough until client migrated to latest GAX.

Thanks for you help.

@liongkj
Copy link

liongkj commented Aug 29, 2020

Downgrading to an older PubSub version

Hi @TheSpy , do you mind explaining how to downgrade to older pubsub version? I tried google but i still have no idea

@liongkj
Copy link

liongkj commented Sep 4, 2020

@hiranya911 Could you please give me some pointers. I am stuck at this for weeks now,

@hiranya911
Copy link
Contributor

@liongkj you will have to go through your dependencies, and downgrade anything that depends on Gax 2.0.

@Bartizan
Copy link

Bartizan commented Nov 5, 2020

as far as I can see it is resolved and could be closed. Thanks

@TheSpy
Copy link
Author

TheSpy commented Nov 5, 2020

I confirm that a release https://github.com/firebase/firebase-admin-dotnet/releases/tag/v2.0.0 has this issue resolved.
Thank you!

@TheSpy TheSpy closed this as completed Nov 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants