A função do trabalhador do Azure se torna sem resposta após a conexão interna do TCP com a função da web

StackOverflow https://stackoverflow.com/questions/3809055

Pergunta

Estou postando a pergunta que aparece primeiro aqui Porque parece que está morto nos fóruns da Microsoft. Além disso, o excesso de pilha é melhor. :-P

Estou hospedando um terminal de TCP em um papel de trabalhador no Azure -

var _breadcrumbServiceHost = new ServiceHost(typeof(BreadcrumbService));
var binding = new NetTcpBinding(SecurityMode.None);
var externalEndPoint = RoleEnvironment.CurrentRoleInstance.InstanceEndpoints["shuttles"];
_breadcrumbServiceHost.AddServiceEndpoint(typeof(IBreadcrumbService), binding, String.Format("net.tcp://{0}/BreadcrumbService", externalEndPoint.IPEndpoint));

E eu recebo duas exceções jogadas -

System.InvalidProgramException  -  Common Language Runtime detected an invalid program

e

Unhandled exception: System.Runtime.CallbackException: Async Callback threw an exception. ---> System.InvalidProgramException: Common Language Runtime detected an invalid program.
   at System.ServiceModel.Dispatcher.ErrorBehavior.HandleErrorCommon(Exception error, ErrorHandlerFaultInfo& faultInfo)
   at System.ServiceModel.Dispatcher.ChannelDispatcher.HandleError(Exception error, ErrorHandlerFaultInfo& faultInfo)
   at System.ServiceModel.Dispatcher.ChannelDispatcher.HandleError(Exception error)
   at System.ServiceModel.Dispatcher.ErrorHandlingReceiver.EndTryReceive(IAsyncResult result, RequestContext& requestContext)
   at System.ServiceModel.Dispatcher.ChannelHandler.EndTryReceive(IAsyncResult result, RequestContext& requestContext)
   at System.ServiceModel.Dispatcher.ChannelHandler.AsyncMessagePump(IAsyncResult result)
   at System.Runtime.Fx.AsyncThunk.UnhandledExceptionFrame(IAsyncResult result)
   at System.Runtime.AsyncResult.Complete(Boolean completedSynchronously)

Nem sempre acontece - às vezes o Azure está perfeitamente feliz.

Ajuda!! Obrigado.

Foi útil?

Solução

Resolvi-o! Parece que há um problema no WCF hospedado em um trabalhador e intellitrace. Desativar o Intellitrace resolveu.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top