Hi all,
I am a newbie to photon server. I followed the instruction on Starting Photon in 5 Minutes. When I start LoadBalancing as an application, the server starts for few seconds then it shut down and throw some exceptions. The exceptions are shown as following:
14536: 15:35:49.925 - Service is running...
14536: 15:35:50.181 - CounterPublisher:4 - PhotonRunning() failed. Exception:
System.Net.Sockets.SocketException (0x80004005): A socket operation was attempted to an unreachable host 255.255.255.255:40001
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
at System.Net.Sockets.UdpClient.Connect(IPEndPoint endPoint)
at ExitGames.Diagnostics.Monitoring.Protocol.PhotonBinaryWriterBase.CreateSender(CounterSampleSenderSettings s) in c:\(Work)\(EG)\exitgames-libs\src\Core\Diagnostics\Monitoring\Protocol\PhotonBinaryWriterBase.cs:line 138
at ExitGames.Diagnostics.Monitoring.Protocol.Photon.Binary.PhotonBinaryWriter..ctor(PacketWriterSettings s) in c:\(Work)\(EG)\exitgames-libs\src\Core\Diagnostics\Monitoring\Protocol\Photon\Binary\PhotonBinaryWriter.cs:line 60
at ExitGames.Diagnostics.Monitoring.CounterSampleSender.CreateWriter(CounterSampleSenderSettings s) in c:\(Work)\(EG)\exitgames-libs\src\Core\Diagnostics\Monitoring\CounterSampleSender.cs:line 60
at ExitGames.Diagnostics.Monitoring.CounterSampleSender..ctor(CounterSampleSenderSettings s) in c:\(Work)\(EG)\exitgames-libs\src\Core\Diagnostics\Monitoring\CounterSampleSender.cs:line 50
at Photon.SocketServer.Diagnostics.CounterPublisher..ctor(CounterPublisherSettings settings) in h:\svncontent\photon-socketserver-sdk_cloud\src\Photon.SocketServer\Diagnostics\CounterPublisher.cs:line 96
at Photon.SocketServer.Diagnostics.CounterPublisher.Nested..cctor() in h:\svncontent\photon-socketserver-sdk_cloud\src\Photon.SocketServer\Diagnostics\CounterPublisher.cs:line 39
at...
System.TypeInitializationException: The type initializer for 'Nested' threw an exception. ---> System.Net.Sockets.SocketException: A socket operation was attempted to an unreachable host 255.255.255.255:40001
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
at System.Net.Sockets.UdpClient.Connect(IPEndPoint endPoint)
at ExitGames.Diagnostics.Monitoring.Protocol.PhotonBinaryWriterBase.CreateSender(CounterSampleSenderSettings s) in c:\(Work)\(EG)\exitgames-libs\src\Core\Diagnostics\Monitoring\Protocol\PhotonBinaryWriterBase.cs:line 138
at ExitGames.Diagnostics.Monitoring.Protocol.Photon.Binary.PhotonBinaryWriter..ctor(PacketWriterSettings s) in c:\(Work)\(EG)\exitgames-libs\src\Core\Diagnostics\Monitoring\Protocol\Photon\Binary\PhotonBinaryWriter.cs:line 60
at ExitGames.Diagnostics.Monitoring.CounterSampleSender.CreateWriter(CounterSampleSenderSettings s) in c:\(Work)\(EG)\exitgames-libs\src\Core\Diagnostics\Monitoring\CounterSampleSender.cs:line 60
at ExitGames.Diagnostics.Monitoring.CounterSampleSender..ctor(CounterSampleSenderSettings s) in c:\(Work)\(EG)\exitgames-libs\src\Core\Diagnostics\Monitoring\CounterSampleSender.cs:line 50
at Photon.SocketServer.Diagnostics.CounterPublisher..ctor(CounterPublisherSettings settings) in h:\svncontent\photon-socketserver-sdk_cloud\src\Photon.SocketServer\Diagnostics\CounterPublisher.cs:line 96
at Photon.SocketServer.Diagnostics.CounterPublisher.Nested..cctor() in h:\svncontent\photon-socketserver-sdk_cloud\src\Photon.SocketServer\Diagnostics\CounterPublisher.cs:line 39
--- End of inner exception stack trace ---
at Photon.CounterPublisher.Application.Setup() in d:\dev\photon-socketserver-sdk_cloud\src-server\CounterPublisher\Application.cs:line 57
at Photon.SocketServer.ApplicationBase.PhotonHostRuntimeInterfaces.IPhotonControl.OnPhotonRunning() in h:\svncontent\photon-socketserver-sdk_cloud\src\Photon.SocketServer\ApplicationBase.cs:line 1189
at PhotonHostRuntime.PhotonDomainManager.PhotonPlainAppDomainBehavior.PhotonRunning()
at PhotonHostRuntime.PhotonDomainManager.PhotonRunning()
14536: 15:35:50.188 - CService::OnException() - Exception: CManagedHost::PhotonRunning() - Failed in AppDomain: 4 - Unspecified error
14536: 15:35:50.188 - Server shutting down...
I reinstalled .NET Framework 3.5 according to the post here but it doesn't help. Does anyone have ideas about this problem?
Thanks in advance!