Windows iot核心上的Firestore功能:加载本机库grpc_csharp_ext.x86.dll时出错

问题描述 投票:0回答:1

对于Windows生态系统来说相对较新。在按照Windows documentation在iot和google的quickstart上为C#设置后台应用程序后,我收到了这个似乎无法解决的错误:

System.IO.IOException: 'Error loading native library "C:\Data\Users\DefaultAccount\AppData\Local\DevelopmentFiles\BackgroundAppFirestoreOne-uwpVS.Debug_ARM.usernoname\grpc_csharp_ext.x86.dll". '

堆栈跟踪:

System.IO.IOException
  HResult=0x80131620
  Message=Error loading native library "C:\Data\Users\DefaultAccount\AppData\Local\DevelopmentFiles\BackgroundAppFirestoreOne-uwpVS.Debug_ARM.usernoname\grpc_csharp_ext.x86.dll". 
  Source=Grpc.Core
  StackTrace:
   at Grpc.Core.Internal.UnmanagedLibrary..ctor(String[] libraryPathAlternatives)
   at Grpc.Core.Internal.NativeExtension.LoadUnmanagedLibrary()
   at Grpc.Core.Internal.NativeExtension.LoadNativeMethods()
   at Grpc.Core.Internal.NativeExtension..ctor()
   at Grpc.Core.Internal.NativeExtension.Get()
   at Grpc.Core.GrpcEnvironment.GrpcNativeInit()
   at Grpc.Core.GrpcEnvironment..ctor()
   at Grpc.Core.GrpcEnvironment.AddRef()
   at Grpc.Core.Channel..ctor(String target, ChannelCredentials credentials, IEnumerable`1 options)
   at Grpc.Core.Channel..ctor(String host, Int32 port, ChannelCredentials credentials, IEnumerable`1 options)
   at Google.Api.Gax.Grpc.ChannelPool.GetChannel(ServiceEndpoint endpoint, IEnumerable`1 channelOptions, ChannelCredentials credentials)
   at Google.Api.Gax.Grpc.ChannelPool.GetChannel(ServiceEndpoint endpoint, IEnumerable`1 channelOptions)
   at Google.Cloud.Firestore.FirestoreDb.Create(String projectId, FirestoreClient client)
   at BackgroundAppFirestoreOne.StartupTask.<Run>d__4.MoveNext() in C:\Users\usernoname\source\repos\BackgroundAppFirestoreOne\StartupTask.cs:line 95

目录中的文件isdoes具有必要的permissions

我的环境:

使用Visual Studios 2019 Enterprise在Windows 10上开发

使用Windows 10 IoT核心版部署到Dragonboard 410c

引用了Google.Cloud.Firestore NuGet

我已经尝试过:

建议将gRPC.core作为this添加,作为VS2019中的NuGet软件包参考,但未成功。

而且我没有this建议的任何非英文字符。

[尝试执行FirestoreDb db = FirestoreDb.Create(project);时发生此错误(请参见sample的第44行)

有人知道这可能是什么/我可以尝试纠正什么?

c# visual-studio google-cloud-firestore grpc windows-10-iot-core
1个回答
0
投票

我没有在Windows IoT核心版17763上遇到Google.Cloud.Firestore 1.1.0的例外情况。请检查软件包版本和操作系统版本。顺便说一句,不建议在后台应用程序中使用该软件包,因为当前您无法注册使用filetypeAssociation的无头应用程序,因此该应用程序无法访问凭证文件(.json)。

© www.soinside.com 2019 - 2024. All rights reserved.