Bug #652

avatar

InvalidCastException when connecting to server

Added by Stefan Agner 4750 days ago. Updated 4564 days ago.

Status:Closed Start:11/23/2011
Priority:Normal Due date:
Assigned to:- % Done:

0%

Category:-
Target version:-
Complexity:

Found in Version:

Votes: 0

Description

When I connect to my Server I get this exception (using Windows Client 0.8 to connect to an Ubuntu Server, version 0.8 too)
Exception Type: System.InvalidCastException Exception Message: Ein Objekt muss IConvertible implementieren. Exception StackTrace: Server stack trace: bei System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider) bei System.Runtime.Serialization.FormatterConverter.Convert(Object value, Type type) bei System.Runtime.Serialization.SerializationInfo.GetValue(String name, Type type) bei System.Collections.Generic.Dictionary`2.OnDeserialization(Object sender) bei System.Runtime.Serialization.ObjectManager.RaiseDeserializationEvent() bei System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage) bei System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage) bei System.Runtime.Remoting.Channels.CoreChannel.DeserializeBinaryResponseMessage(Stream inputStream, IMethodCallMessage reqMsg, Boolean bStrictBinding) bei System.Runtime.Remoting.Channels.BinaryClientFormatterSink.DeserializeMessage(IMethodCallMessage mcm, ITransportHeaders headers, Stream stream) bei System.Runtime.Remoting.Channels.BinaryClientFormatterSink.SyncProcessMessage(IMessage msg) Exception rethrown at [0]: bei System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) bei System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) bei Smuxi.Engine.GroupChatModel.get_Persons() bei Smuxi.Frontend.Gnome.GroupChatView.Sync() bei Smuxi.Frontend.Gnome.GnomeUI.<SyncChat>c__AnonStoreyA.<>m__13(Object , EventArgs ) At Server side I get this:
2011-11-23 09:13:53,280 [1167099648] ERROR Smuxi.Engine.UserConfig - get_Item[]: default value is null for key: Servers/IRC/irc.ircnet.com/Hostname 2011-11-23 09:13:53,298 [1167099648] ERROR Smuxi.Engine.ServerListController - GetServerList(): GetServer(IRC, irc.ircnet.com) returned null! ignoring...

Related issues

duplicates Smuxi - Bug #589 remoting error since updating smuxi-server to Mono 2.10.1 Closed 04/20/2011

History

Updated by Stefan Agner 4750 days ago

avatar

I could solve the server side error by adding these lines:

[Engine/Users/local/Servers/IRC/irc.ircnet.com] Hostname = irc.ircnet.com

The exception on the client is still there...

Updated by Stefan Agner 4750 days ago

avatar

Very likely related to Bug #589. My mono version:

$ mono --version
Mono JIT compiler version 2.10.5 (Debian 2.10.5-1)

Updated by Mirco Bauer 4748 days ago

avatar

Yes, this is the same issue as seen in #589 and there is no known workaround yet. Mono 2.10.x broke ABI compatibility with MS .NET when it comes to the System.Collections.Generic.Dictionary<K, V> type which Smuxi makes use of. We will need a fix in Mono for this issue.

Updated by Mirco Bauer 4564 days ago

avatar
  • Status changed from New to Closed

I never experienced this issue with Mono 2.10.8 so I think I can assume the issue is no longer present

Also available in: Atom PDF