Archived

This forum has been archived. Please start a new discussion on GitHub.

Problem with IceSSL after Ice 3.3.0 instalation

In my project i often use SSL connections. In order to get info about SSL connection (user certs, etc) i use IceSSL.Util.getConnectionInfo(current__.con) method. I worked on Ice 3.2.0 and everything works correctly. But after migration on Ice 3.3.0 following code (which works on Ice 3.2.0):

Console.WriteLine("CONNECTION TYPE: " + current__.con.type());
Console.WriteLine(IceSSL.Util.getConnectionInfo(current__.con).ToString());

gives following result:

CONNECTION TYPE: ssl
2008-08-04 21:22:07:421 SessionServiceServer.exe: warning: dispatch exception:
identity: SessionManager
facet:
operation: listSessions
IceSSL.ConnectionInvalidException
reason = "not ssl connection"
at IceInternal.IncomingBase.handleException__(Exception exc) in d:\builds\dis
tbuilds\release\Ice-3.3.0\cs\src\Ice\Incoming.cs:line 151

I work in Visual Studio 2008 and i use .NET 3.5 framework. What is wrong in above code, and why when Connection.type() method returns "ssl" i get IceSSL.ConnectionInvalidException with message "not ssl connection"???

Comments

  • matthew
    matthew NL, Canada
    I just tested this with Ice 3.3.0 under XP and it worked fine. What I did was modify the hello demo as you described below. Assuming that I actually established a secure connection with the server, then everything worked as expected. You should verify that your environment is sane by doing a similar exercise.