question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

System.IO.FileLoadException: Could not load file or assembly 'Google.Api.Gax.Grpc, Version=2.1.0.0'

See original GitHub issue

System.IO.FileLoadException: Could not load file or assembly 'Google.Api.Gax.Grpc, Version=2.1.0.0, Culture=neutral, PublicKeyToken=3ec5ea7f18953e47' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference.

.Net 4.6.1 Error occurs when trying to execute Google.Cloud.PubSub.V1 (1.0.0-beta13) code.

We do have binding redirects (that have correct versions):

      <dependentAssembly>
        <assemblyIdentity name="Google.Api.Gax" publicKeyToken="3ec5ea7f18953e47" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-2.2.1.0" newVersion="2.2.1.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="Google.Api.Gax.Grpc" publicKeyToken="3ec5ea7f18953e47" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-2.2.1.0" newVersion="2.2.1.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="Google.Api.Gax.Rest" publicKeyToken="3ec5ea7f18953e47" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-2.2.1.0" newVersion="2.2.1.0" />
      </dependentAssembly>

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
jskeetcommented, Dec 5, 2017

Sounds good to me, thanks - I completely appreciate that reproducing it now you’ve got an alternative isn’t a priority 😃

0reactions
NPSF3000commented, Dec 5, 2017

Agreed. I might be able to create a reproducible case… but it’s not worth our time at this moment. If we see this again we’ll let you know.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Dependency issue when running c# sample project based ...
Auth to 1.21.0 but then the problem moves to "Could not load Google.Api.Gax, Version=1.0.1.0" and then (if I keep downgrading dependencies) ...
Read more >
[jira] [Work logged] (BEAM-3900) Introduce Euphoria Java 8 ...
The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file...
Read more >
https://git.furworks.de/opensourcemirror/opnsense-...
+ +It is built using a modular "virtual analog" model, where the composer can build +the synthesizers from scratch using simple basic building...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found