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

Thread: Error deploying libsodium

  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

    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?

  8. #8
    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

  9. #9

    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.

  10. #10

    Default Re: Error deploying libsodium

    Update:
    Never got it to work on the Windows 2012 Server, so we installed a fresh 2016 Server instead, and it worked right out of the box.
    Anyway, thanks for the help!

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
  •