Google.Cloud.Asset.V1 exception System.IO.FileNotFoundException
See original GitHub issueHi 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
@jskeet any idea why this might be?
Issue Analytics
- State:
- Created 3 years ago
- Comments:12
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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:
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.
(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:
… 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.