Hi All,
We have been trying to connect to SFS server from PS3 using Unity SFS2x dll, but, we have encountered the flowing error.
Connection Failed : General exception on connection: Attempting to JIT compile method ‘(wrapper managed-to-native) System.Net
.Sockets.Socket:Socket_internal (System.Net.Sockets.AddressFamily,System.Net.Sockets.SocketType,System.Net.Sockets.ProtocolTy
pe,int)’ while running with --aot-only.
at System.Net.Sockets.Socket…ctor (AddressFamily family, SocketType type, ProtocolType proto) [0x00000] in :0
at System.Net.Sockets.TcpClient.Init (AddressFamily family) [0x00000] in :0
at System.Net.Sockets.TcpClient…ctor () [0x00000] in :0
at Sfs2X.Core.Sockets.TCPSocketLayer.ConnectThread () [0x00000] in :0 ==> NotSocket
UnityEngine.Debug:Internal_Log(Int32, String, Object)
I am getting the above error when I DISABLE Stripping Level, also I am getting the following error for all other Stripping Levels (except Disabled).
Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for System.Net.Socke
ts.Socket —> System.Configuration.ConfigurationErrorsException: Error Initializing the configuration system. —> System.Mi
ssingMethodException: Default constructor not found for type System.Configuration.ExeConfigurationHost.
at System.Activator.CreateInstance (System.Type type, Boolean nonPublic) [0x00000] in :0
at System.Activator.CreateInstance (System.Type type) [0x00000] in :0
at System.Configuration.InternalConfigurationSystem.Init (System.Type typeConfigHost, System.Object[ ] hostInitParams) [0x00
000] in :0
at System.Configuration.InternalConfigurationFactory.Create (System.Type typeConfigHost, System.Object[ ] hostInitConfigurat
ionParams) [0x00000] in :0
at System.Configuration.ConfigurationManager.OpenExeConfigurationInternal (ConfigurationUserLevel userLevel, System.Reflect
ion.Assembly calling_assembly, System.String exePath) [0x00000] in :0
at System.Configuration.ClientConfigurationSystem.get_Configuration () [0x00000] in :0
— End of inner exception stack trace —
at System.Configuration.ClientConfigurationSystem.get_Configuration () [0x00000] in :0
at System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection (System.St
ring configKey) [0x00000] in :0
at System.Configuration.ConfigurationManager.GetSection (System.String sectionName) [0x00000] in :0
I have posted this issue on SFS 2x forums and they are claiming that this not from their side and suggested to contact Unity. Please find the link below.
http://www.smartfoxserver.com/forums/viewtopic.php?f=18&t=16775&p=72339&hilit=SFS+ps3#p72339
Any help on this would be greatly appreciated.
Please let me know if you need any further information in this regard.
Thanks,
Sudhakar