Yes spotted that, but I need an instantiated object to set the port on, but how do I construct a UniSession object without using the OpenSession method ? There doesn't seem to be a constructor that allows creation of the object without attempting a connection, seemingly in the event of a failed connection opensession does not return an instance of the object. Unless I'm missing something obvious ?
Ian -----Original Message----- From: Ron White [mailto:[EMAIL PROTECTED] Sent: 09 November 2004 19:19 To: [EMAIL PROTECTED] Subject: Re: [U2] UniObjects.Net specifying port Look in the UniObjects .Net Help under UniSession Properties. One of the properties is public int HostPort {get; set;}. Ron White ----- Original Message ----- From: "Ian Clark" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, November 09, 2004 8:35 AM Subject: [U2] UniObjects.Net specifying port > Hi, > > We've recently received UniObjects.NET and are investigating upgrading our > existing UO code to .NET. However our RPC daemon is configured to run on > a different port from the normal. Does anyone know how to specify the > port number used to connect when using UO.NET. Previously our code was > able to perform this using the hostname property (e.g. "HOST:PORT") > however UO.NET doesn't like this and complains that the host doesn't > exist. I can't seem to find a constructor that allows me to create a > session without actually opening a session, and unfortunately the > opensession method does not allow a port specification. > > Anyone got any ideas ? > > I Clark > > > The information in this electronic mail message is Confidential and may be > legally privileged. > It is intended solely for the addressees. Access to this internet > electronic mail message by anyone else is unauthorized. > If you are not the intended recipient, any disclosure, copying, > distribution or any action taken or omitted to be taken > in reliance on it is prohibited and may be unlawful. The sender believes > that this E-mail and any attachments were free > of any virus, worm, Trojan horse, and/or malicious code when sent. > This message and its attachments could have been infected during > transmission. By reading the message and opening any > attachments, the recipient accepts full responsibility for taking > protective and remedial action about viruses and other > defects. The sender's employer is not liable for any loss or damage > arising in any way from this message or its attachments. > -VRG3a- > ------- > u2-users mailing list > [EMAIL PROTECTED] > To unsubscribe please visit http://listserver.u2ug.org/ > --- > [ E-mail scanned Virus Free by NAI - McAfee anti-virus system ] > > > --- [ E-mail scanned Virus Free by NAI - McAfee anti-virus system ] ------- u2-users mailing list [EMAIL PROTECTED] To unsubscribe please visit http://listserver.u2ug.org/ The information in this electronic mail message is Confidential and may be legally privileged. It is intended solely for the addressees. Access to this internet electronic mail message by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it is prohibited and may be unlawful. The sender believes that this E-mail and any attachments were free of any virus, worm, Trojan horse, and/or malicious code when sent. This message and its attachments could have been infected during transmission. By reading the message and opening any attachments, the recipient accepts full responsibility for taking protective and remedial action about viruses and other defects. The sender's employer is not liable for any loss or damage arising in any way from this message or its attachments. -VRG3a- ------- u2-users mailing list [EMAIL PROTECTED] To unsubscribe please visit http://listserver.u2ug.org/