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.

Google.Cloud.Asset.V1 exception System.IO.FileNotFoundException

See original GitHub issue

Hi all,

<PackageReference Include="Google.Cloud.Asset.V1" Version="2.6.0" />

A few days ago we started getting the following error:

System.IO.FileNotFoundException at Grpc.Core.Internal.UnmanagedLibrary.FirstValidLibraryPath

Error loading native library. Not found in any of the possible locations: /home/site/wwwroot/bin/libgrpc_csharp_ext.x64.so,/home/site/wwwroot/bin/runtimes/linux/native/libgrpc_csharp_ext.x64.so,/home/site/wwwroot/bin/../../runtimes/linux/native/libgrpc_csharp_ext.x64.so

image

@jskeet any idea why this might be?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12

github_iconTop GitHub Comments

1reaction
jskeetcommented, Jan 20, 2021

Expanding the results view needs to iterate over all the pages, making RPCs as it goes. You’re trying to do that in the debugger which may well have all kinds of restrictions in terms of how it interoperates with native code… I’m not particularly surprised that fails, even if it’s a bit of a pity. It’s also possible that it does work, but takes longer than the debugger is willing to wait.

I’d suggest adding:

var pages = pagedResponse.ToList();

and then stepping over that to see all pages. If you see an error when not running in the debugger, please file a new issue with details.

1reaction
jskeetcommented, Jan 19, 2021

(Copied from the Stack Overflow answer. Closing the issue now.)

It looks like this is a problem that was fixed in Grpc.Core 2.34.0 (by this commit, I believe). If you add an explicit dependency on Grpc.Core 2.34.0, like this:

<PackageReference Include="Grpc.Core" Version="2.34.0" />

… that seems to fix it. I still don’t know why the runtime was copied into the “old” expected place for Windows but not for Linux - that feels like it’s an Azure Functions SDK issue somehow. But with Grpc.Core 2.34.0, the native extension loader “knows” where to find it in the parent bin/runtimes directory instead.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cloud Asset Inventory client libraries
Start writing code for Cloud Asset Inventory in C#, Go, Java, Node.js, PHP, Python, ... using Google.Api.Gax.ResourceNames; using Google.Cloud.Asset.V1;
Read more >
Getting FileNotFoundException when trying to upload File ...
I got it work after making a few changes. I was getting a 401 Unauthorized Error code which means I didn't have authorization...
Read more >
Package google.cloud.asset.v1
Analyzes organization policies governed assets (Google Cloud resources or policies) under a scope. This RPC supports custom constraints and the ...
Read more >
c# - Link Xamarin Application and Google Firestore using ...
For my windows application they work correctly, but I have problem with my Xamarin mobile Application. I can't connect application with database ...
Read more >
Troubleshoot on-premises deployments - Finance & ...
IO.FileNotFoundException: Could not load file or assembly ... Exception Info: System.DllNotFoundException at Microsoft.Cloud.
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