Re: [RavenDB] ASP.NET 4.7.1 WebAPI Service

106 views
Skip to first unread message

Oren Eini (Ayende Rahien)

unread,
Apr 4, 2019, 2:49:12 AM4/4/19
to ravendb
Did you see:  Initialization error could also be caused by missing 'Microsoft Visual C++ 2015 Redistributable Package' (or newer).

On Wed, Apr 3, 2019 at 6:57 PM Marc Simkin <ma...@mhcomp.com> wrote:
I just deployed RavenDb to one of my production servers and I encountered an issue with being unable to load DLL libsodium.X64.dll.

I have  installed RavenDb as a Windows Service so that it can be accessed from both a Windows Service and the WebAPI.  The Windows Service doesn't have any issues and works as expected.  I installed the VC++ 2015 redistributes, but that hasn't fixed the issue.

Both the production and qa servers are running Windows Server 2012 R2.

The full stack dump is below:

Raven.Client.Exceptions.RavenException: System.TypeInitializationException: The type initializer for 'Windows' threw an exception. ---> Sparrow.Platform.IncorrectDllException: libsodium.x64.dll 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 'libsodium.x64.dll' or one of its dependencies: The specified module could not be found. (Exception from HRESULT: 0x8007007E)
   at Sparrow.Sodium.Windows.X64.sodium_init()
   at Sparrow.Sodium.Windows.X64.Initialize() in C:\Builds\RavenDB-Stable-4.1\41010\src\Sparrow\Sodium.cs:line 3649
   --- End of inner exception stack trace ---
   at Sparrow.Sodium.Windows.X64.Initialize() in C:\Builds\RavenDB-Stable-4.1\41010\src\Sparrow\Sodium.cs:line 3663
   at Sparrow.Sodium.Windows..cctor() in C:\Builds\RavenDB-Stable-4.1\41010\src\Sparrow\Sodium.cs:line 2818
   --- End of inner exception stack trace ---
   at Sparrow.Sodium.Windows.crypto_generichash_bytes() in C:\Builds\RavenDB-Stable-4.1\41010\src\Sparrow\Sodium.cs:line 2846
   at Raven.Server.Documents.ComputeHttpEtags.ComputeEtagForDocuments(List`1 documents, List`1 includes) in C:\Builds\RavenDB-Stable-4.1\41010\src\Raven.Server\Documents\ComputeHttpEtags.cs:line 46
   at Raven.Server.Documents.Handlers.DocumentHandler.GetDocumentsByIdAsync(DocumentsOperationContext context, StringValues ids, Boolean metadataOnly) in C:\Builds\RavenDB-Stable-4.1\41010\src\Raven.Server\Documents\Handlers\DocumentHandler.cs:line 231
   at Raven.Server.Documents.Handlers.DocumentHandler.Get() in C:\Builds\RavenDB-Stable-4.1\41010\src\Raven.Server\Documents\Handlers\DocumentHandler.cs:line 111
   at Raven.Server.Routing.RequestRouter.HandlePath(RequestHandlerContext reqCtx) in C:\Builds\RavenDB-Stable-4.1\41010\src\Raven.Server\Routing\RequestRouter.cs:line 124
   at Raven.Server.RavenServerStartup.RequestHandler(HttpContext context) in C:\Builds\RavenDB-Stable-4.1\41010\src\Raven.Server\RavenServerStartup.cs:line 173 ---> System.TypeInitializationException: System.TypeInitializationException: The type initializer for 'Windows' threw an exception. ---> Sparrow.Platform.IncorrectDllException: libsodium.x64.dll 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 'libsodium.x64.dll' or one of its dependencies: The specified module could not be found. (Exception from HRESULT: 0x8007007E)
   at Sparrow.Sodium.Windows.X64.sodium_init()
   at Sparrow.Sodium.Windows.X64.Initialize() in C:\Builds\RavenDB-Stable-4.1\41010\src\Sparrow\Sodium.cs:line 3649
   --- End of inner exception stack trace ---
   at Sparrow.Sodium.Windows.X64.Initialize() in C:\Builds\RavenDB-Stable-4.1\41010\src\Sparrow\Sodium.cs:line 3663
   at Sparrow.Sodium.Windows..cctor() in C:\Builds\RavenDB-Stable-4.1\41010\src\Sparrow\Sodium.cs:line 2818
   --- End of inner exception stack trace ---
   at Sparrow.Sodium.Windows.crypto_generichash_bytes() in C:\Builds\RavenDB-Stable-4.1\41010\src\Sparrow\Sodium.cs:line 2846
   at Raven.Server.Documents.ComputeHttpEtags.ComputeEtagForDocuments(List`1 documents, List`1 includes) in C:\Builds\RavenDB-Stable-4.1\41010\src\Raven.Server\Documents\ComputeHttpEtags.cs:line 46
   at Raven.Server.Documents.Handlers.DocumentHandler.GetDocumentsByIdAsync(DocumentsOperationContext context, StringValues ids, Boolean metadataOnly) in C:\Builds\RavenDB-Stable-4.1\41010\src\Raven.Server\Documents\Handlers\DocumentHandler.cs:line 231
   at Raven.Server.Documents.Handlers.DocumentHandler.Get() in C:\Builds\RavenDB-Stable-4.1\41010\src\Raven.Server\Documents\Handlers\DocumentHandler.cs:line 111
   at Raven.Server.Routing.RequestRouter.HandlePath(RequestHandlerContext reqCtx) in C:\Builds\RavenDB-Stable-4.1\41010\src\Raven.Server\Routing\RequestRouter.cs:line 124
   at Raven.Server.RavenServerStartup.RequestHandler(HttpContext context) in C:\Builds\RavenDB-Stable-4.1\41010\src\Raven.Server\RavenServerStartup.cs:line 173
   --- End of inner exception stack trace ---
   at Raven.Client.Exceptions.ExceptionDispatcher.<Throw>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Raven.Client.Http.RequestExecutor.<HandleUnsuccessfulResponse>d__91`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Raven.Client.Http.RequestExecutor.<ExecuteAsync>d__76`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Raven.Client.Http.RequestExecutor.<ExecuteAsync>d__76`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Raven.Client.Util.AsyncHelpers.<>c__DisplayClass2_0.<<RunSync>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Raven.Client.Util.AsyncHelpers.RunSync(Func`1 task)
   at Raven.Client.Documents.Session.DocumentSession.LoadInternal(String[] ids, LoadOperation operation, Stream stream)
   at Raven.Client.Documents.Session.DocumentSession.Load[T](IEnumerable`1 ids)
   at RenRestService.Controllers.RecommendationsController.GetAudienceCodeExcludeList(IEnumerable`1 eans, Int64 unacceptableLevel) in C:\BuildAgent\work\b979ba67f60419\RenRestService\Version 3\Controllers\RecommendationsController.cs:line 314
   at RenRestService.Controllers.RecommendationsController.FilterResultsOnAudienceLevel(List`1 sortedRecs) in C:\BuildAgent\work\b979ba67f60419\RenRestService\Version 3\Controllers\RecommendationsController.cs:line 297
   at RenRestService.Controllers.RecommendationsController.GetRecommendations(RequestDetails details, RecommendationRequest model) in C:\BuildAgent\work\b979ba67f60419\RenRestService\Version 3\Controllers\RecommendationsController.cs:line 229


--
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.
To post to this group, send email to rav...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ravendb/9aec4c4f-f134-42ee-88d5-a45f1718083e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Oren Eini
CEO   /   Hibernating Rhinos LTD
Skype:  ayenderahien
Support:  sup...@ravendb.net
Reply all
Reply to author
Forward
0 new messages