EldoS | Feel safer!

Software components for data protection, secure storage and transfer

'Unit' is ambiguous in the namespace 'SBUtils'.

Posted: 06/04/2007 10:40:16
by April Vicars (Basic support level)
Joined: 04/17/2007
Posts: 7

I am using vs.net 2005, and the latest release of sbb (May release). I added a simpleSFTP to my component designer, and I am getting the error: 'Unit' is ambiguous in the namespace 'SBUtils'. on the line...

I notice on the 5.0 version, all the sbb references are "GAC" type, while on the 5.1 version there are some "BIN" types. So...
Could this error have something to do with the new release?

My Imports...
Imports SBSftpCommon
Imports SBSimpleSftp
Imports SBSSHKeyStorage

My variables...
Private WithEvents pbxSFTPClient As SBSimpleSftp.TElSimpleSFTPClient
Private keyStorage As TElSSHMemoryKeyStorage

The whole sub routine...
Protected Sub PbxConnect()
KeyStorage = New TElSSHMemoryKeyStorage
Me.pbxSFTPClient = New SBSimpleSftp.TElSimpleSFTPClient
Me.pbxSFTPClient.KeyStorage = KeyStorage
If Me.pbxSFTPClient.Active Then
Response.Write("already connected")
Exit Sub
End If
Me.pbxSFTPClient.Username = "root"
Me.pbxSFTPClient.Password = "pswrd"
Me.pbxSFTPClient.Address = "ipaddress"
Me.pbxSFTPClient.Port = 22
Dim key As New TElSSHKey
Dim privatekeyadded As Boolean = False
If Not privatekeyadded Then
Me.pbxSFTPClient.AuthenticationTypes = Me.pbxSFTPClient.AuthenticationTypes And Not SBSSHConstants.Unit.SSH_AUTH_TYPE_PUBLICKEY
End If
Catch ex As Exception
Exit Sub
End Try
Response.Write("sftp connection established")
currentPbxDir = "."
End Sub

Posted: 06/04/2007 10:46:43
by Eugene Mayevski (Team)

April Vicars wrote:
I notice on the 5.0 version, all the sbb references are "GAC" type, while on the 5.1 version there are some "BIN" types. So...

Your project is referencing the mix of assemblies, where some are taken from GAC, and some are copied to the local folder for undefined reason. You need to uninstall the previous version prior to installing the new one. This will guarantee that the latest version will be installed to the GAC and used.

Sincerely yours
Eugene Mayevski



Topic viewed 2961 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!