gpt4 book ai didi

c# - Microsoft.AspNetCore.Cryptography.Internal.dll : 'Unable to load DLL ' kernel32. dll'

转载 作者:太空宇宙 更新时间:2023-11-04 12:07:51 25 4
gpt4 key购买 nike

我的电脑是 (lsb_release -a):

LSB Version:    :core-4.1-amd64:core-4.1-noarch
Distributor ID: CentOS
Description: CentOS Linux release 7.4.1708 (Core)
Release: 7.4.1708
Codename: Core

我的 dotnet 核心版本 (dotnet --version) 是:

2.1.105

我的 openssl 版本是:

openssl 
OpenSSL> version
OpenSSL 1.1.0h 27 Mar 2018

当我尝试加载我的服务器时,出现以下错误:

Exception has occurred: CLR/System.DllNotFoundException
Exception thrown: 'System.DllNotFoundException' in Microsoft.AspNetCore.Cryptography.Internal.dll: 'Unable to load DLL 'kernel32.dll': The specified module or one of its dependencies could not be found.
(Exception from HRESULT: 0x8007007E)'
at Microsoft.AspNetCore.Cryptography.SafeHandles.SafeLibraryHandle.UnsafeNativeMethods.LoadLibraryEx(String lpFileName, IntPtr hFile, UInt32 dwFlags)
at Microsoft.AspNetCore.Cryptography.SafeHandles.SafeLibraryHandle.Open(String filename)

我的 .csproj 是:

<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>netcoreapp2.0</TargetFramework>
<NeutralLanguage>pt-BR</NeutralLanguage>
<Authors>Cogtive Team</Authors>
<Company>Cogtive Opex Software</Company>
<Product>Cogtive Core Api V2</Product>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<DocumentationFile>bin\Debug\netcoreapp2.0\Cogtive.Core.Api.V2.xml</DocumentationFile>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.2.1" />
<PackageReference Include="Microsoft.AspNetCore" Version="2.0.2" />
<PackageReference Include="Microsoft.AspNetCore.ApplicationInsights.HostingStartup" Version="2.0.2" />
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="2.0.3" />
<PackageReference Include="Microsoft.AspNetCore.ResponseCaching" Version="2.0.2" />
<PackageReference Include="Microsoft.AspNetCore.ResponseCompression" Version="2.0.2" />
<PackageReference Include="Microsoft.AspNetCore.StaticFiles" Version="2.0.2" />
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="2.0.1" />
<PackageReference Include="Newtonsoft.Json" Version="11.0.2" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="2.3.0" />
</ItemGroup>
<ItemGroup>
<DotNetCliToolReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Tools" Version="1.0.1" />
</ItemGroup>
<ItemGroup>
<DotNetCliToolReference Include="Microsoft.DotNet.Watcher.Tools" Version="1.0.0" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Cogtive.Core.Application\Cogtive.Core.Application.csproj" />
</ItemGroup>
</Project>

rpm -q openssl 返回:

openssl-1.0.2k-8.el7.x86_64

rpm -qa | grep openssl 返回:

xmlsec1-openssl-1.2.20-7.el7_4.x86_64
openssl-devel-1.0.2k-8.el7.x86_64
openssl-1.0.2k-8.el7.x86_64
openssl-libs-1.0.2k-8.el7.x86_64

直到最近它都运行良好,但现在我无法让它再次运行。

我的电脑可能更新了一个库或其他东西,现在它不再工作了。

有什么想法吗?

最佳答案

那个 OpenSSL 版本看起来很令人惊讶。这是我在 CentOS 上的内容:

[omajid@localhost ~]$ rpm -q openssl
openssl-1.0.2k-8.el7.x86_64
[omajid@localhost ~]$ openssl
OpenSSL> version
OpenSSL 1.0.2k-fips 26 Jan 2017

你从哪里得到 1.1?你能降级到1.0吗? .NET Core 与 1.1.x 不兼容:https://github.com/dotnet/corefx/issues/9855

关于c# - Microsoft.AspNetCore.Cryptography.Internal.dll : 'Unable to load DLL ' kernel32. dll',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49986465/

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