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 );
EntryPointNotFound Exception - 1.6.2 Unity WebGL
Re: EntryPointNotFound Exception - 1.6.2 Unity WebGL
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.
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
The SmartFoxServer Team
Re: EntryPointNotFound Exception - 1.6.2 Unity WebGL
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.
Re: EntryPointNotFound Exception - 1.6.2 Unity WebGL
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.
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.
Re: EntryPointNotFound Exception - 1.7.17 Unity WebGL
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 );
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 );
Re: EntryPointNotFound Exception - 1.6.2 Unity WebGL
@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
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
Re: EntryPointNotFound Exception - 1.6.2 Unity WebGL
hi ,I have applied all the previous things ,but its not getting connected , I get the same error again and again...
Re: EntryPointNotFound Exception - 1.6.2 Unity WebGL
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:
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
Re: EntryPointNotFound Exception - 1.6.2 Unity WebGL
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..
Who is online
Users browsing this forum: No registered users and 42 guests