يصبح دور عامل Azure غير مستجيب بعد اتصال TCP الداخلي مع دور الويب
-
25-09-2019 - |
سؤال
أقوم بنشر السؤال الذي يظهر أولاً هنا لأنه يبدو أنه قد مات في منتديات Microsoft. بالإضافة إلى ذلك ، فائض المكدس أفضل. : p
أنا أستضيف نقطة نهاية TCP في دور العامل في 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));
وأحصل على استثناءين ألقا -
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 سعيدًا تمامًا.
مساعدة!! شكرًا.
المحلول
حلها! يبدو أن هناك مشكلة مع WCF المستضافة في عامل و intelliTrace. تعطيل IntelliTrace حلها.
لا تنتمي إلى StackOverflow