Photon Server Chat Tutorial - weird issue
Options
StarKist
✭
Hi,
I'm looking into Photon Server.. I'm following the chat tutorial:
https://doc.photonengine.com/en-us/onpremise/current/app-framework/an-app-from-scratch
I'm stuck on a weird issue on the last step where you need to add the broadcast using C# events.
If I add the line "BroadcastMessage += OnBroadcastMessage;" (subscribing to the event) in the ChatPeer constructor the client can no longer connect to the server.
If I comment it out I can connect and receive the response (not the broadcast obviously):
Any help?
Thanks ahead,
Michael.
I'm looking into Photon Server.. I'm following the chat tutorial:
https://doc.photonengine.com/en-us/onpremise/current/app-framework/an-app-from-scratch
I'm stuck on a weird issue on the last step where you need to add the broadcast using C# events.
If I add the line "BroadcastMessage += OnBroadcastMessage;" (subscribing to the event) in the ChatPeer constructor the client can no longer connect to the server.
If I comment it out I can connect and receive the response (not the broadcast obviously):
Any help?
Thanks ahead,
Michael.
0
Comments
-
Hi, Michael
You should check server-side logs to see what happened. in case it is still unclear, please send us logs.
I assume you have there NullReferenceException or something like this.
best,
ilya0 -
The server side logs don't seem to show anything other than service running... service stopped..., however, I get this exception in visual studio if I attach to PhotonSocketServer.exe:
https://imgur.com/OBDFu7b
[EDIT] Solved
The project was created as a .NET standard instead of .NET framework... making it ask for the wrong .dlls.
0