InitCrypto fails

Post here your questions about the Unity / .Net / Mono / Windows 8 / Windows Phone 8 API for SFS2X

Moderators: Lapo, Bax

--F--
Posts: 1
Joined: 24 Apr 2021, 14:03

InitCrypto fails

Postby --F-- » 24 Apr 2021, 14:09

InitCrypto fails on Unity 2019.4.24 with error:

Offset and length were out of bounds for the array or count is greater than the number of elements from index to the end of the source collection.


Code: Select all

ConfigData cfg = new ConfigData();
cfg.Host = "demo.smartfox.com";
cfg.Port = 9933;
cfg.HttpPort = 8080;
cfg.HttpsPort = 8443;
cfg.Zone = Zone;


It doesn't log to smartfox server so I think It is a unity client api error which I don't have access.
User avatar
Bax
Site Admin
Posts: 4535
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: InitCrypto fails

Postby Bax » 26 Apr 2021, 08:09

(moved to the appropriate forum section)

What version of the C# API are you using?
Paolo Bax
The SmartFoxServer Team
User avatar
Lapo
Site Admin
Posts: 21993
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: InitCrypto fails

Postby Lapo » 26 Apr 2021, 08:14

Hi,
can you show us the full stack trace of the client side error?

Have you double checked that the SSL certificate you have deployed works correctly? (i.e. checking by pointing your browser)
Also, can you please check that you don't have server side errors, when this happens?

Thanks
Lapo
--
gotoAndPlay()
...addicted to flash games

Return to “SFS2X C# API”

Who is online

Users browsing this forum: No registered users and 11 guests