EldoS | Feel safer!

Software components for data protection, secure storage and transfer

HTTPClient = New TElHTTPSClient crashes, Win Svr 2012 R2, in vb.net

Posted: 01/19/2015 03:31:54
by Marc Meister (Standard support level)
Joined: 08/19/2011
Posts: 10

Hi All,

Well, this time I need your help.
Here is my code. I work with VS2013 and have installed
pdf blackbox Version 12.0.263

When I install the final project on Windows 8.1, I do not get any error
message, but when I do it on Windows Server 2012 R2, it does not work.
The attached message appears in the Windows message box and says:

Method not found: VOID

Can you help please?
I think the bug must be in DLL
SecureBlackbox.HTTPCommon.dll or

Thanks, Marc

Imports SBPDF
Imports SBPDFSecurity
Imports SBCustomCertStorage
Imports SBWinCertStorage
Imports SBX509
Imports SBTSPCommon
Imports SBTSPClient
Imports SBHTTPSClient
Imports SBHTTPTSPClient
Imports SBPKCS11Base
Imports SBPKCS11CertStorage
Imports SBPKCS11Common

    Private Document As TElPDFDocument
    Private PublicKeyHandler As TElPDFPublicKeySecurityHandler
    Private CertStorage As TElMemoryCertStorage
    Private SystemStore As TElWinCertStorage
    Private Cert As TElX509Certificate
    Private HTTPClient As TElHTTPSClient
    Private WithEvents cmbPKCS11Certificates As System.Windows.Forms.ComboBox
    Private WithEvents btnOpenNSSStorage As System.Windows.Forms.Button
    Private WithEvents btnOpenStorage As System.Windows.Forms.Button
    Private WithEvents rbPKCS11Cert As System.Windows.Forms.RadioButton
    Private WithEvents folderBrowserDialog As System.Windows.Forms.FolderBrowserDialog
    Private WithEvents OpenDialogPKCS11 As System.Windows.Forms.OpenFileDialog
    Friend WithEvents PKCS11CertStorage As SBPKCS11CertStorage.TElPKCS11CertStorage
    Private TSPClient As TElHTTPTSPClient
    Private Session As TElPKCS11SessionInfo
     Public Sub New()

        'This call is required by the Windows Form Designer

            SBUtils.Unit.SetLicenseKey("0D38E.....")'->> OK
        Catch ex As Exception
        End Try
            SBUtils.Unit.SetLicenseKey("5F222D......")'->> OK
        Catch ex As Exception
        End Try

        'Both initialization function *must* be called before using PDFBlackbox:

        'Initialize classes
        TSPClient = New TElHTTPTSPClient '->> OK

            HTTPClient = New TElHTTPSClient '->> this crashes
        Catch ex As Exception
            MsgBox(ex.Message) 'see attached message
        End Try
        '.... more initializations here

    End Sub
Posted: 01/19/2015 03:39:25
by Vsevolod Ievgiienko (Team)

Thank you for contacting us.

Please check if .NEt version installed on the problematic machine is the same as assemblies version used to build the project.
Posted: 01/19/2015 10:10:22
by Eugene Mayevski (Team)

This is a known problem caused by the breaking change in .NET 4.5.1.

In brief, the version of .NET Framework for which SecureBlackbox has been compiled must exactly match the version of .NET Framework on the target system. We provide separate sets of SecureBlackbox assemblies for .NET 4.5. and for .NET 4.5.1 and you must deploy the correct set of assemblies. Deploying the incorrect set (OR update of .NET Framework from 4.5 to 4.5.1) will break the code.

Let me repeat, this is not our bug but a breaking change of .NET 4.5.1 which we can't bypass in any way.

Sincerely yours
Eugene Mayevski
Posted: 01/20/2015 05:12:10
by Marc Meister (Standard support level)
Joined: 08/19/2011
Posts: 10

Hi Eugene,

I spent a lot of time to get this situation clear.

I downloaded new windows versions and tested:

Windows server 2012 R2 Std works, the .net installed version per default is

Windows server 2012 Std does not work, the .net installed version per default is
is 4.5.641

Windows server 2012 Std does not work, the .net installed version per default is
is 4.5.709

I get this info form registry "local machine software microsoft .net framework setup ndp v4 client"

So then I tested to update with windows update the Windows server 2012 Std with
4.5.50709, 105 updates were downloaded. I did it also for the server 4.5.641.


Once Windows update are installed, everything works !!!

You will notice a desktop account update, a littel window when you relog to your account.

So for me, this problem is closed, sorry for all that wasted time, updates !!!!

I keep your idea in mind, 4.5 and 4.5.1, but for the moment it seems that
updates are doing our job, you are welcome, if you have time !!! to do these tests, time is major issue, 105 update on an emulated win server takes for ever...

Thank you all at Eldos, as usual, problems are solved.




Topic viewed 1964 times

Number of guests: 1, registered members: 0, in total hidden: 0


Back to top

As of July 15, 2016 EldoS business operates as a division of /n software, inc. For more information, please read the announcement.

Got it!