Probably not finding the OpenSSL dlls when running. Go to the Run part of the Project panel and edit the PATH environment variable there. Add the path to where the OpenSSL dlls can be found and re-run the application.