Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Error deploying libsodium

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Error deploying libsodium

    We are trying to deploy an application that uses libsodium, but we get an error


    Webapp.exe refuses to start because of this error:




    The webserver is a Windows 2012, and we have installed the C++ 2017 runtime that came in the libsodium library:





    If we try to register libsodium.dll (as admin) we get the following error:




    But the api-ms-win-crt-runtime-l1-1-0.dll file is part of windows update KB2999226, that was installed with the
    C++ 2017runtime we just installed.

    We also tried to reinstall C++ runtine, run repair, and reboot of the webserver withoutluck.

    Even tried to install the 64bit C++ runtime also, but still the same error.


    Any suggestions?

    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	libsodiumerror1.jpg 
Views:	719 
Size:	124.6 KB 
ID:	13165   Click image for larger version. 

Name:	libsodiumerror2.jpg 
Views:	674 
Size:	5.1 KB 
ID:	13166   Click image for larger version. 

Name:	libsodiumerror3.jpg 
Views:	683 
Size:	32.3 KB 
ID:	13167  
    Last edited by JimmyH; 21-Oct-2019 at 02:17 AM.

  2. #2
    Join Date
    Feb 2009
    Location
    Hengelo, Netherlands
    Posts
    10,869

    Default Re: Error deploying libsodium

    Jimmy,

    If we try to register libsodium.dll (as admin) we get the following error:
    Why do you try to use regsvr32? Libsodium is a DLL not a COM module.
    Regards,
    Data Access Worldwide
    Vincent Oorsprong

  3. #3

    Default Re: Error deploying libsodium

    Quote Originally Posted by Vincent Oorsprong View Post
    Jimmy,


    Why do you try to use regsvr32? Libsodium is a DLL not a COM module.
    Out of desperation and lack of knowledge I guess.

  4. #4
    Join Date
    Feb 2009
    Location
    Stuart, FL
    Posts
    5,321

    Default Re: Error deploying libsodium

    Jimmy

    obviously registering the DLL is not required but of course that also has nothing to do nor does it help with your problem

    the error you are getting is that it cannot load the DLL. In most cases this means that either the DLL is not accessible (path or rights) or any of its dependencies is not accessible

    i would test with a non webapp test first to take the user rights issue out of the equation (or you can temporarily assign an admin user to your webapp service to see if it is a user rights issue)
    Michael Salzlechner
    StarZen Technologies, Inc
    http.://www.starzen.com

    IT Director at Balloons Everywhere

    Development Blog
    http://www.salzlechner.com/dev

    DataFlex Package Manager (aka Nuget for DataFlex)
    http://windowsdeveloper.com/dfPackage

  5. #5

    Default Re: Error deploying libsodium

    Thanks for the suggestions, but Im still not having much luck.


    I tried to compile a non-webapp program and run it. It fails with this error regardless of I run it as myself or with admin rights:




    Then I tried to uninstall the VC redist, and install it as administrator. It installs just fine without errors, but this didn't help either.



    Any other suggestions?
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	libsodiumerror4.jpg 
Views:	377 
Size:	27.3 KB 
ID:	13172   Click image for larger version. 

Name:	libsodiumerror5.jpg 
Views:	353 
Size:	135.9 KB 
ID:	13173  
    Last edited by JimmyH; 23-Oct-2019 at 04:31 AM.

  6. #6
    Join Date
    Feb 2009
    Location
    Stuart, FL
    Posts
    5,321

    Default Re: Error deploying libsodium

    i think you are missing the VC 2015 redistributable

    https://www.microsoft.com/en-in/down....aspx?id=48145
    Michael Salzlechner
    StarZen Technologies, Inc
    http.://www.starzen.com

    IT Director at Balloons Everywhere

    Development Blog
    http://www.salzlechner.com/dev

    DataFlex Package Manager (aka Nuget for DataFlex)
    http://windowsdeveloper.com/dfPackage

  7. #7
    Join Date
    Sep 2020
    Location
    Australia
    Posts
    57

    Default Re: Error deploying libsodium

    Digging up an old thread, but I faced this error last night setting up a development project on a fresh Install of Windows. I had VC++ Redist's installed as recommended (2015, 2017, 2019), also trying the one that came packaged in the security library, but it kept having same error: Unable to load DLL LIBSODIUM.DLL. Dataflex would also crash whenever I would add the library through "Manage Libraries"; giving same event error as OP.

    I managed to fix it when I installed VC++ Redist 2008 & 2010. I'm not sure which one triggered the fix, but this is the only google result for such an error, so leaving this here if it helps anyone .

  8. #8

    Default Re: Error deploying libsodium

    I tried to uninstall 2017 and install 2015, but Im getting an error:

    Error 0x80240017: Failed to execute MSU package.

    Maybe this 2012 Server is unable to run C++ runtimes newer than 2013?

  9. #9
    Join Date
    Feb 2009
    Location
    Stuart, FL
    Posts
    5,321

    Default Re: Error deploying libsodium

    Michael Salzlechner
    StarZen Technologies, Inc
    http.://www.starzen.com

    IT Director at Balloons Everywhere

    Development Blog
    http://www.salzlechner.com/dev

    DataFlex Package Manager (aka Nuget for DataFlex)
    http://windowsdeveloper.com/dfPackage

  10. #10

    Default Re: Error deploying libsodium

    Not really any resolution in there. We are able to install the runtime without errors, and we also tried to install KB2999226, but libsodium still can't access the C+ runtime for some strange reason.

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •