gpt4 book ai didi

c# - 在 UWP C# 应用程序中使用 mongodb 驱动程序版本 2.14.1

转载 作者:行者123 更新时间:2023-12-05 05:49:01 25 4
gpt4 key购买 nike

我正在尝试升级 UWP C# 应用程序中使用的 mongodb 驱动程序(完全用 C# 编写,为 x86、x64、arm 和 arm64 构建)。最后一个可用的驱动程序版本是 2.10.4。任何高于该版本的驱动程序编译并运行良好,但 WACK(Windows 应用程序认证工具包)失败。如果我将更新后的应用程序包上传到 Windows 应用商店,它会因与 WACK 相同的问题而无法通过认证。我需要升级驱动程序,因为从 2022 年 2 月开始,所有共享的 mongodb 实例都将升级到 5.0。 Mongo 驱动程序 2.10.4 最多只支持 4.4。我遇到的认证问题是:

Binary analyzer

Error Found: The binary analyzer test detected the following errors:
File libzstd.dll has failed the DBCheck check.
Impact if not fixed: If the app doesn’t use the available Windows protections, it can increase the vulnerability of the customer's computer to malware.
How to fix: Apply the required linker options - SAFESEH, DYNAMICBASE, NXCOMPAT, and APPCONTAINER - when you link the app.

Supported APIs

Error Found: The supported APIs test detected the following errors:
API MessageBoxW in user32.dll is not supported for this application type. libzstd.dll calls this API.
API ___lc_codepage_func in msvcrt.dll is not supported for this application type. libzstd.dll calls this API.
API __dllonexit in msvcrt.dll is not supported for this application type. libzstd.dll calls this API.
API __iob_func in msvcrt.dll is not supported for this application type. libzstd.dll calls this API.
API __mb_cur_max in msvcrt.dll is not supported for this application type. libzstd.dll calls this API.
API _amsg_exit in msvcrt.dll is not supported for this application type. libzstd.dll calls this API.
API _errno in msvcrt.dll is not supported for this application type. libzstd.dll calls this API.
API _exit in msvcrt.dll is not supported for this application type. libzstd.dll calls this API.
API _initterm in msvcrt.dll is not supported for this application type. libzstd.dll calls this API.
API _lock in msvcrt.dll is not supported for this application type. libzstd.dll calls this API.
API _onexit in msvcrt.dll is not supported for this application type. libzstd.dll calls this API.
API _snwprintf in msvcrt.dll is not supported for this application type. libzstd.dll calls this API.
API _unlock in msvcrt.dll is not supported for this application type. libzstd.dll calls this API.
API abort in msvcrt.dll is not supported for this application type. libzstd.dll calls this API.
API calloc in msvcrt.dll is not supported for this application type. libzstd.dll calls this API.
API clock in msvcrt.dll is not supported for this application type. libzstd.dll calls this API.
API fflush in msvcrt.dll is not supported for this application type. libzstd.dll calls this API.
API fputc in msvcrt.dll is not supported for this application type. libzstd.dll calls this API.
API free in msvcrt.dll is not supported for this application type. libzstd.dll calls this API.
API fwprintf in msvcrt.dll is not supported for this application type. libzstd.dll calls this API.
API fwrite in msvcrt.dll is not supported for this application type. libzstd.dll calls this API.
API getenv in msvcrt.dll is not supported for this application type. libzstd.dll calls this API.
API localeconv in msvcrt.dll is not supported for this application type. libzstd.dll calls this API.
API malloc in msvcrt.dll is not supported for this application type. libzstd.dll calls this API.
API memcmp in msvcrt.dll is not supported for this application type. libzstd.dll calls this API.
API memcpy in msvcrt.dll is not supported for this application type. libzstd.dll calls this API.
API memmove in msvcrt.dll is not supported for this application type. libzstd.dll calls this API.
API memset in msvcrt.dll is not supported for this application type. libzstd.dll calls this API.
API qsort in msvcrt.dll is not supported for this application type. libzstd.dll calls this API.
API raise in msvcrt.dll is not supported for this application type. libzstd.dll calls this API.
API signal in msvcrt.dll is not supported for this application type. libzstd.dll calls this API.
API strerror in msvcrt.dll is not supported for this application type. libzstd.dll calls this API.
API strlen in msvcrt.dll is not supported for this application type. libzstd.dll calls this API.
API strncmp in msvcrt.dll is not supported for this application type. libzstd.dll calls this API.
API vfprintf in msvcrt.dll is not supported for this application type. libzstd.dll calls this API.
API wcscpy in msvcrt.dll is not supported for this application type. libzstd.dll calls this API.
API wcslen in msvcrt.dll is not supported for this application type. libzstd.dll calls this API.
Impact if not fixed: Using an API that is not part of the Windows SDK for Microsoft Store apps violates the Microsoft Store certification requirements.
How to fix: Review the error messages to identify the API that is not part of the Windows SDK for Microsoft Store apps. Please note, apps that are built in a debug configuration or without .NET Native enabled (where applicable) can fail this test as these environments may pull in unsupported APIs. Retest your app in a release configuration, and with .NET Native enabled if applicable.

Platform appropriate files

Error Found: The platform appropriate files test detected the following errors:
File libzstd.dll is designed only for x64 processor type; App package manifest declares 'ProcessorArchitecture' as arm.
File mongocrypt.dll is designed only for x64 processor type; App package manifest declares 'ProcessorArchitecture' as arm.
File snappy32.dll is designed only for x86 processor type; App package manifest declares 'ProcessorArchitecture' as arm.
File snappy64.dll is designed only for x64 processor type; App package manifest declares 'ProcessorArchitecture' as arm.
Impact if not fixed: Including files in the app package that are incompatible with the target processor architecture may cause your app to fail at runtime.
How to fix: Ensure that binary file architecture is compatible with the ProcessorArchitecture attribute specified within the app package manifest.

感谢任何帮助

最佳答案

或许您可以免除对司机的需求。如果您只需要一个简单的 GET/PUT,您可以发出一个 http 请求。

关于c# - 在 UWP C# 应用程序中使用 mongodb 驱动程序版本 2.14.1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70728221/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com