Try:
uvSession.EncryptionEnabled = 1

True evaluates to -1 in VB usually. 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jason Lin
Sent: Saturday, 19 July 2008 9:51 AM
To: [email protected]
Subject: [U2] Question about Uniobject and session encryption

Hi all.

I am having trouble using session encryption in Uniobject and I hope
someone can help me out on this issue.

According to the "UniObjects for .NET Developer’s Guide",
Uniboject allows encryption applied to its UniSession object.  On page
3-34, I see two properties of UniSession explained:  EncryptionEnabled
and EncryptionType.

If I create a simple VB.Net program such as the following

Dim uvSession As UniSession
Dim uvFile As UniFile
uvSession = UniObjects.OpenSession(server, login, password, account,
"uvcs") uvFile = uvSession.CreateUniFile(some_file_on_server)

I can successfully create a UniFile object to access a file on a remote
server.

However, if I added the following lines after the UniSession obejct is
created:

uvSession.EncryptionEnabled = True
uvSession.EncryptionType = 1

I would get the following error message when creating a UniFile object.

[IBM U2][UODOTNET - UNIRPC][ErrorCode=81004] An argument was requested
from the RPC that was of an invalid type

Does anyknow what I am doing wrong here?

Any information would be greatly appreciated.
Thank you.
Jason
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to