ayezutov/NDistribUnit — Issue #64: [BUG]: Unhandled exception while announcing agent
Author: ayezutov
Created: 2012-01-29 07:29:53+00:00
State: open

Unhandled exception was handled by bootstrapper
System.ServiceModel.CommunicationException
An unexpected socket exception occurred when sending data. See inner exception for details.

Server stack trace:
at System.ServiceModel.Channels.UdpSocket.SendTo(Byte[] buffer, Int32 offset, Int32 size, EndPoint remoteEndPoint)
at System.ServiceModel.Channels.UdpDuplexChannel.TransmitMessage(ArraySegment`1 messageBytes, UdpSocket[] sockets, IPEndPoint remoteEndpoint, TimeoutHelper timeoutHelper)
at System.ServiceModel.Channels.UdpDuplexChannel.OnSend(Message message, TimeSpan timeout)
at System.ServiceModel.Channels.DuplexChannel.Send(Message message, TimeSpan timeout)
at System.ServiceModel.Dispatcher.DuplexChannelBinder.Send(Message message, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at System.ServiceModel.Discovery.Version11.IAnnouncementContract11.HelloOperation(HelloMessage11 message)
at System.ServiceModel.Discovery.Version11.AnnouncementInnerClient11.HelloOperation(EndpointDiscoveryMetadata endpointDiscoveryMetadata)
at System.ServiceModel.Discovery.AnnouncementClient.AnnounceOnline(EndpointDiscoveryMetadata discoveryMetadata)
at NDistribUnit.Common.Agent.ExternalModules.AnnouncementModule.Announce() in d:\work\personal\NDistribUnit\source\code\NDistribUnit.Common\Agent\ExternalModules\AnnouncementModule.cs:line 111
at NDistribUnit.Common.Agent.ExternalModules.AnnouncementModule.b__1(Object o) in d:\work\personal\NDistribUnit\source\code\NDistribUnit.Common\Agent\ExternalModules\AnnouncementModule.cs:line 48
at System.Threading._TimerCallback.TimerCallback_Context(Object state)
at System.Threading.ExecutionContext.runTryCode(Object userData)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
at System.Threading._TimerCallback.PerformTimerCallback(Object state)
------------

System.Net.Sockets.SocketException
An attempt was made to access a socket in a way forbidden by its access permissions
at System.Net.Sockets.Socket.SendTo(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags, EndPoint remoteEP)
at System.ServiceModel.Channels.UdpSocket.SendTo(Byte[] buffer, Int32 offset, Int32 size, EndPoint remoteEndPoint)

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.