2010-09-28 39 views
1

我發佈了第一個出現的問題here,因爲它似乎已經死在Microsoft論壇上。另外,堆棧溢出更好。 :-PAzure工作者角色在與網絡角色的內部tcp連接後變得無響應

我在託管Azure上的輔助角色TCP端點 -

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)); 

我得到兩個拋出的異常 -

System.InvalidProgramException - Common Language Runtime detected an invalid program 

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) 

這並不總是會發生 - 有時Azure會非常高興。

幫助!!謝謝。

+1

我看到了與數據瀏覽器相同的確切問題,減少了odata調用的連接池,這似乎阻止了這種情況的發生。 – 2010-09-28 02:10:27

回答

1

解決了!看起來在工作人員和IntelliTrace中託管的WCF存在一個問題。禁用IntelliTrace解決了它。