EldoS | Feel safer!

Software components for data protection, secure storage and transfer

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

Also by EldoS: CallbackDisk
Create virtual disks backed by memory or custom location, expose disk images as disks and more.
#3051
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...
SBUtils.Unit.SetLicenseKey("{evalkey}")

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()
SBUtils.Unit.SetLicenseKey("evalkey")
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
KeyStorage.Clear()
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
Try
Me.pbxSFTPClient.Open()
Catch ex As Exception
Response.Write(ex.Message)
Exit Sub
End Try
Response.Write("sftp connection established")
currentPbxDir = "."
End Sub

#3052
Posted: 06/04/2007 10:46:43
by Eugene Mayevski (EldoS Corp.)

Quote
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

Reply

Statistics

Topic viewed 2752 times

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




|

Back to top

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

Got it!