EntryPointNotFound Exception - 1.6.2 Unity WebGL

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

Moderators: Lapo, Bax

Sbn
Posts: 24
Joined: 25 Nov 2014, 20:37

EntryPointNotFound Exception - 1.6.2 Unity WebGL

Postby Sbn » 06 Jan 2016, 17:33

I'm trying to get my client to connect to my smartfox server, however I keep getting an EntryPointNotFound Exception whenever I call sfs.connect("127.0.0.1", 8888).

Unity: 5.3.1p1 - WebGL platform
SmartFox Server: 2.11.0
SmartFox Client: 1.6.2 WebGL


EntryPointNotFoundException: SocketCreate
Sfs2X.Core.Sockets.WebSocketHelper.Connect ()
Sfs2X.Core.Sockets.WebSocketLayer.Connect (System.String host, Int32 port)
Sfs2X.Bitswarm.WebSocketClient.Connect (System.String host, Int32 port)
Sfs2X.SmartFox.Connect (System.String host, Int32 port)


I have HTML5 WebSockets enabled and I'm trying to connect using ip: 127.0.0.1 port: 8888

I initialize my smartfox like this

smartFox = new SmartFox( UseWebSocket.WS, true );
User avatar
Bax
Site Admin
Posts: 4609
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: EntryPointNotFound Exception - 1.6.2 Unity WebGL

Postby Bax » 07 Jan 2016, 15:01

We just installed the latest official version (5.3.1f1) and run one of our examples, both in the Editor and as WebGL build, and everything works as expected.
Not sure why you get that error. Actually this is the first time we see it.
Can you test your project using the same Unity version? If you still get the same error, can you create a minimal project and send it to us, so we can see the error occur?
Thanks.
Paolo Bax
The SmartFoxServer Team
Sbn
Posts: 24
Joined: 25 Nov 2014, 20:37

Re: EntryPointNotFound Exception - 1.6.2 Unity WebGL

Postby Sbn » 14 Jan 2016, 23:24

I went back to 1.6.1 for now which is working fine. I'm pretty bust at the moment with another project, but If I get a chance I'll try and supply a small project with the issue.
Sbn
Posts: 24
Joined: 25 Nov 2014, 20:37

Re: EntryPointNotFound Exception - 1.6.2 Unity WebGL

Postby Sbn » 15 Jun 2016, 19:43

I forgot to close this one out... Just in case someone stumbles on the same issue.

The issue seemed to be the Path info wasn't correct on the jslib and dlls.

When I did the whole Plugins->WebGL->SFSWebSockets.jslib hierarchy this error went away.

Before I pasted the SFSWebSockets.jslib in Plugins folder. I'm assuming the issue was with the Path info.
mani96510
Posts: 3
Joined: 11 Apr 2022, 07:38

Re: EntryPointNotFound Exception - 1.7.17 Unity WebGL

Postby mani96510 » 12 Apr 2022, 11:16

Am also facing the same issue..

Unity: 2020.3.24p1 - WebGL platform
SmartFox Server: 2.18.0
SmartFox Client: 1.7.17 WebGL


EntryPointNotFoundException: SocketError
Sfs2X.Core.Sockets.WebSocketHelper.get_Error () (at <81865654adc745c5a2d9ac3349cb113e>:0)
Sfs2X.Core.Sockets.WebSocketLayer.ProcessState () (at <81865654adc745c5a2d9ac3349cb113e>:0)
Sfs2X.SmartFox.ProcessEvents () (at <81865654adc745c5a2d9ac3349cb113e>:0)

I have HTML5 WebSockets enabled and I'm trying to connect using ip: 127.0.0.1 port: 8080

I initialize my smartfox like this

smartFox = new SmartFox( UseWebSocket.WS, true );
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: EntryPointNotFound Exception - 1.6.2 Unity WebGL

Postby Lapo » 12 Apr 2022, 14:27

@mani96510
Hi,
did you see the posts prior to your own? It looks like you have the same issue and could apply the same solution.

Cheers
Lapo
--
gotoAndPlay()
...addicted to flash games
mani96510
Posts: 3
Joined: 11 Apr 2022, 07:38

Re: EntryPointNotFound Exception - 1.6.2 Unity WebGL

Postby mani96510 » 13 Apr 2022, 05:54

hi ,I have applied all the previous things ,but its not getting connected , I get the same error again and again...
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: EntryPointNotFound Exception - 1.6.2 Unity WebGL

Postby Lapo » 13 Apr 2022, 11:03

mani96510 wrote:hi ,I have applied all the previous things ,but its not getting connected , I get the same error again and again...

The error is definitely pointing to a missing element of the API in your project and a WebGL project does require two elements to be imported in your project: the SmartFox2X.dll and the SFSWebSockets.jslib library.

If you check your project Assets folder you should find something very similar to the screenshot I have attached:
WebGL.png
(93.76 KiB) Not downloaded yet

Does it look like that? If not make sure to follow the docs on how to add the SFS2X API in your Unity project, here:
http://docs2x.smartfoxserver.com/Gettin ... api-csharp

Cheers
Lapo

--

gotoAndPlay()

...addicted to flash games
mani96510
Posts: 3
Joined: 11 Apr 2022, 07:38

Re: EntryPointNotFound Exception - 1.6.2 Unity WebGL

Postby mani96510 » 13 Apr 2022, 12:15

thank u so much for ur help , the problem is webgl api path i thing,now the pbm is resolved..thank u so much for ur replys..

Return to “SFS2X C# API”

Who is online

Users browsing this forum: No registered users and 24 guests