DllNotFoundException:无法加载DLL';librvnpal';在windows 7 x64上启动RavenDB 4.2时。如何纠正这一点?

DllNotFoundException:无法加载DLL';librvnpal';在windows 7 x64上启动RavenDB 4.2时。如何纠正这一点?,ravendb,ravendb4,Ravendb,Ravendb4,已安装VC可再发行软件包 以下是例外情况的详细信息: Unhandled Exception: System.TypeInitializationException: The type initializer for 'Sparrow.Server.Platform.Pal' threw an exception. ---> Sparrow.Server.Platform.IncorrectDllException: librvnpal version might be invalid o

已安装VC可再发行软件包

以下是例外情况的详细信息:

Unhandled Exception: System.TypeInitializationException: The type initializer for 'Sparrow.Server.Platform.Pal' threw an exception. ---> Sparrow.Server.Platform.IncorrectDllException: librvnpal version might be invalid or not usable on current platform. Initialization error could also be caused by missing 'Microsoft Visual C++ 2015 Redistributable Package' (or newer). It can be downloaded from https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads ---> System.DllNotFoundException: Unable to load DLL 'librvnpal' or one of its dependencies: The specified procedure could not be found. (Exception from HRESULT: 0x8007007F)
   at Sparrow.Server.Platform.Pal.rvn_get_pal_ver()
   at Sparrow.Server.Platform.Pal..cctor() in C:\Builds\RavenDB-Stable-4.2\42009\src\Sparrow.Server\Platform\Pal.cs:line 66
   --- End of inner exception stack trace ---
   at Sparrow.Server.Platform.Pal..cctor() in C:\Builds\RavenDB-Stable-4.2\42009\src\Sparrow.Server\Platform\Pal.cs:line 83
   --- End of inner exception stack trace ---
   at Sparrow.Server.Platform.Pal.rvn_get_current_thread_id()
   at Sparrow.Utils.NativeMemory.ThreadStats..ctor() in C:\Builds\RavenDB-Stable-4.2\42009\src\Sparrow\Utils\NativeMemory.cs:line 77
   at Sparrow.Utils.NativeMemory.<>c.<.cctor>b__25_1() in C:\Builds\RavenDB-Stable-4.2\42009\src\Sparrow\Utils\NativeMemory.cs:line 18
   at System.Threading.ThreadLocal`1.GetValueSlow()
   at Sparrow.Utils.NativeMemory.AllocateMemory(Int64 size, ThreadStats& thread) in C:\Builds\RavenDB-Stable-4.2\42009\src\Sparrow\Utils\NativeMemory.cs:line 114
   at Sparrow.Json.ArenaMemoryAllocator..ctor(SharedMultipleUseFlag lowMemoryFlag, Int32 initialSize) in C:\Builds\RavenDB-Stable-4.2\42009\src\Sparrow\Json\ArenaMemoryAllocator.cs:line 69
   at Sparrow.Json.JsonOperationContext..ctor(Int32 initialSize, Int32 longLivedSize, SharedMultipleUseFlag lowMemoryFlag) in C:\Builds\RavenDB-Stable-4.2\42009\src\Sparrow\Json\JsonOperationContext.cs:line 366
   at Sparrow.Json.JsonOperationContext.ShortTermSingleUse() in C:\Builds\RavenDB-Stable-4.2\42009\src\Sparrow\Json\JsonOperationContext.cs:line 306
   at Raven.Server.Utils.Cli.RuntimeSettings.TryGetRetainVMSettingValue() in C:\Builds\RavenDB-Stable-4.2\42009\src\Raven.Server\Utils\Cli\RuntimeSettings.cs:line 21
   at Raven.Server.Utils.Cli.RuntimeSettings.Describe() in C:\Builds\RavenDB-Stable-4.2\42009\src\Raven.Server\Utils\Cli\RuntimeSettings.cs:line 69
   at Raven.Server.Utils.Cli.RavenCli.GetInfoText() in C:\Builds\RavenDB-Stable-4.2\42009\src\Raven.Server\Utils\Cli\RavenCli.cs:line 551
   at Raven.Server.Program.Main(String[] args) in C:\Builds\RavenDB-Stable-4.2\42009\src\Raven.Server\Program.cs:line 93
未处理的异常:System.TypeInitializationException:“Sparrow.Server.Platform.Pal”的类型初始值设定项引发了异常。-->Sparrow.Server.Platform.IncorrectdlLexException:librvnpal版本可能无效或在当前平台上不可用。初始化错误也可能是由于缺少“微软Visual C++ 2015可重分发包”(或更新)造成的。可从以下网址下载:https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads --->System.DllNotFoundException:无法加载DLL“librvnpal”或其依赖项之一:找不到指定的过程。(HRESULT的异常:0x8007007F)
在Sparrow.Server.Platform.Pal.rvn\u get\u Pal\u ver()上
在C:\Builds\RavenDB-Stable-4.2\42009\src\Sparrow.Server\Platform\Pal.cs中的Sparrow.Server.Platform.Pal..cctor()处:第66行
---内部异常堆栈跟踪的结束---
在C:\Builds\RavenDB-Stable-4.2\42009\src\Sparrow.Server\Platform\Pal.cs中的Sparrow.Server.Platform.Pal..cctor()处:第83行
---内部异常堆栈跟踪的结束---
在Sparrow.Server.Platform.Pal.rvn\u获取当前线程\u id()
在C:\Builds\RavenDB-Stable-4.2\42009\src\Sparrow\Utils\NativeMemory.ThreadStats..ctor()中
在c:\Builds\RavenDB-Stable-4.2\42009\src\Sparrow\Utils\NativeMemory.c.b\u 25\u 1()中
在System.Threading.ThreadLocal`1.GetValueSlow()中
在C:\Builds\RavenDB-Stable-4.2\42009\src\Sparrow\Utils\NativeMemory.cs中的Sparrow.Utils.NativeMemory.AllocateMemory(Int64大小,ThreadStats&thread)中:第114行
在C:\Builds\RavenDB-Stable-4.2\42009\src\Sparrow\Json\arenamemoryallalocator..ctor(SharedMultipleUseFlag lowMemoryFlag,Int32 initialSize)中的Sparrow.Json.ArenamemoryLocator..ctor(SharedMultipleUseFlag lowMemoryFlag,Int32 initialSize):第69行
在C:\Builds\RavenDB-Stable-4.2\42009\src\Sparrow\Json\JsonOperationContext.ctor(Int32 initialSize,Int32 longLivedSize,SharedMultipleUseFlag lowMemoryFlag)中
在C:\Builds\RavenDB-Stable-4.2\42009\src\Sparrow\Json\JsonOperationContext.cs中的Sparrow.Json.JsonOperationContext.ShortTermSingleUse()处:第306行
在C:\Builds\RavenDB-Stable-4.2\42009\src\Raven.Server\Utils\Cli.RuntimeSettings.TryGetRetainVMSettingValue()中的Raven.Server.Utils.Cli.RuntimeSettings.TryGetRetainVMSettingValue()处:第21行
在C:\Builds\RavenDB-Stable-4.2\42009\src\Raven.Server\Utils\Cli.RuntimeSettings.description()中的Raven.Server.Utils.Cli.RuntimeSettings.description()处:第69行
在C:\Builds\RavenDB-Stable-4.2\42009\src\Raven.Server\Utils\Cli.RavenCli.GetInfoText()中的Raven.Server.Utils.Cli.RavenCli.GetInfoText()处:第551行
在C:\Builds\RavenDB-Stable-4.2\42009\src\Raven.Server\Program.Main(字符串[]args)中的Raven.Server.Program.Main处:第93行

发现与上述错误有关的两个问题,并在此处修复:

它们将在即将发布的4.2.1版本中提供(或本周晚些时候在PR合并后的夜间版本中提供)