Quantcast
Channel: Service Bus forum
Viewing all articles
Browse latest Browse all 1916

Service Bus 1.1 won't work on other ports

$
0
0

Hello,

After a HUGE effort to configure Service Bus 1.1, I've finally managed to configure it to work on some non-default ports (the configuration failed when using the default ports because the message broker service failed to start - no error logs of any kind).

However, now, when I run my site I get this exception:

No connection could be made because the target machine actively refused it 192.168.139.1:9354

[SocketException (0x274d): No connection could be made because the target machine actively refused it 192.168.139.1:9354]
   System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult) +6613977
   System.ServiceModel.Channels.ConnectAsyncResult.OnConnect(IAsyncResult result) +101

[EndpointNotFoundException: Could not connect to net.tcp://myPC:9354/ServiceBusDefaultNamespace/. The connection attempt lasted for a time span of 00:00:06.0963487. TCP error code 10061: No connection could be made because the target machine actively refused it 192.168.139.1:9354. ]
   Microsoft.ServiceBus.Common.AsyncResult.End(IAsyncResult result) +382
   Microsoft.ServiceBus.Messaging.Sbmp.SbmpSubscriptionClient.OnEndClose(IAsyncResult result) +31

[MessagingCommunicationException: Could not connect to net.tcp://myPC:9354/ServiceBusDefaultNamespace/. The connection attempt lasted for a time span of 00:00:06.0963487. TCP error code 10061: No connection could be made because the target machine actively refused it 192.168.139.1:9354. ]
   Microsoft.ServiceBus.Messaging.Sbmp.SbmpSubscriptionClient.OnEndClose(IAsyncResult result) +66
   Microsoft.ServiceBus.Messaging.SubscriptionClient.OnClose(TimeSpan timeout) +46
   Microsoft.ServiceBus.Messaging.MessageClientEntity.Close(TimeSpan timeout) +261
   Microsoft.ServiceBus.Messaging.MessageClientEntity.Close() +45
   myProject.Infrastructure.Messaging.WSB.ServiceBusConfig.UpdateSqlFilter(NamespaceManager namespaceManager, String sqlExpression, String subscriptionName, String topicPath) in d:\Fldr_\MyProject\myProject.Infrastructure.Messaging.WSB\ServiceBusConfig.cs:293
   myProject.Infrastructure.Messaging.WSB.ServiceBusConfig.UpdateRules(NamespaceManager namespaceManager, TopicSettings topic, SubscriptionSettings subscription) in d:\Fldr_\MyProject\myProject.Infrastructure.Messaging.WSB\ServiceBusConfig.cs:226
   myProject.Infrastructure.Messaging.WSB.<>c__DisplayClassa.<Initialize>b__4() in d:\Fldr_\MyProject\myProject.Infrastructure.Messaging.WSB\ServiceBusConfig.cs:57
   Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling.<>c__DisplayClass1.<ExecuteAction>b__0() +10
   Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling.RetryPolicy.ExecuteAction(Func`1 func) +184
   Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling.RetryPolicy.ExecuteAction(Action action) +94
   myProject.Infrastructure.Messaging.WSB.<>c__DisplayClass8.<Initialize>b__2(SubscriptionSettings subscription) in d:\Fldr_\MyProject\myProject.Infrastructure.Messaging.WSB\ServiceBusConfig.cs:57
   System.Linq.Parallel.ForAllEnumerator`1.MoveNext(TInput& currentElement, Int32& currentKey) +83
   System.Linq.Parallel.ForAllSpoolingTask`2.SpoolingWork() +45
   System.Linq.Parallel.SpoolingTaskBase.Work() +157
   System.Linq.Parallel.QueryTask.BaseWork(Object unused) +62
   System.Linq.Parallel.QueryTask.RunTaskSynchronously(Object o) +38
   System.Threading.Tasks.Task.InnerInvoke() +61
   System.Threading.Tasks.Task.Execute() +45

[AggregateException: One or more errors occurred.]
   System.Linq.Parallel.QueryTaskGroupState.QueryEnd(Boolean userInitiatedDispose) +229
   System.Linq.Parallel.SpoolingTask.SpoolForAll(QueryTaskGroupState groupState, PartitionedStream`2 partitions, TaskScheduler taskScheduler) +157
   System.Linq.Parallel.DefaultMergeHelper`2.System.Linq.Parallel.IMergeHelper<TInputOutput>.Execute() +135
   System.Linq.Parallel.MergeExecutor`1.Execute() +40
   System.Linq.Parallel.MergeExecutor`1.Execute(PartitionedStream`2 partitions, Boolean ignoreOutput, ParallelMergeOptions options, TaskScheduler taskScheduler, Boolean isOrdered, CancellationState cancellationState, Int32 queryId) +395
   System.Linq.Parallel.PartitionedStreamMerger`1.Receive(PartitionedStream`2 partitionedStream) +75
   System.Linq.Parallel.ForAllOperator`1.WrapPartitionedStream(PartitionedStream`2 inputStream, IPartitionedStreamRecipient`1 recipient, Boolean preferStriping, QuerySettings settings) +312
   System.Linq.Parallel.ChildResultsRecipient.Receive(PartitionedStream`2 inputStream) +135
   System.Linq.Parallel.ListQueryResults`1.GivePartitionedStream(IPartitionedStreamRecipient`1 recipient) +106
   System.Linq.Parallel.UnaryQueryOperatorResults.GivePartitionedStream(IPartitionedStreamRecipient`1 recipient) +578
   System.Linq.Parallel.QueryOperator`1.GetOpenedEnumerator(Nullable`1 mergeOptions, Boolean suppressOrder, Boolean forEffect, QuerySettings querySettings) +434
   System.Linq.Parallel.ForAllOperator`1.RunSynchronously() +202
   System.Linq.ParallelEnumerable.ForAll(ParallelQuery`1 source, Action`1 action) +88
   myProject.Infrastructure.Messaging.WSB.ServiceBusConfig.Initialize() in d:\Fldr_\MyProject\myProject.Infrastructure.Messaging.WSB\ServiceBusConfig.cs:48
   myProject.Presentation.Portal.App_Start.ConfigUnity.RegisterTypes(IUnityContainer container) in d:\Fldr_\MyProject\myProject.Presentation.Portal\App_Start\ConfigUnity.cs:96
   myProject.Presentation.Portal.App_Start.ConfigUnity.<.cctor>b__4() in d:\Fldr_\MyProject\myProject.Presentation.Portal\App_Start\ConfigUnity.cs:66
   System.Lazy`1.CreateValue() +415
   System.Lazy`1.LazyInitValue() +152
   System.Lazy`1.get_Value() +75
   myProject.Presentation.Portal.App_Start.ConfigUnity.GetConfiguredContainer() in d:\Fldr_\MyProject\myProject.Presentation.Portal\App_Start\ConfigUnity.cs:74
   myProject.Presentation.Portal.App_Start.UnityWebApiActivator.Start() in d:\Fldr_\MyProject\myProject.Presentation.Portal\App_Start\UnityWebApiActivator.cs:24

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
   System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) +0
   System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) +192
   System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +108
   System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters) +19
   WebActivatorEx.BaseActivationMethodAttribute.InvokeMethod() +239
   WebActivatorEx.ActivationManager.RunActivationMethods(Boolean designerMode) +495
   WebActivatorEx.ActivationManager.RunPreStartMethods(Boolean designerMode) +36
   WebActivatorEx.ActivationManager.Run() +75

[InvalidOperationException: The pre-application start initialization method Run on type WebActivatorEx.ActivationManager threw an exception with the following error message: Exception has been thrown by the target of an invocation..]
   System.Web.Compilation.BuildManager.InvokePreStartInitMethodsCore(ICollection`1 methods, Func`1 setHostingEnvironmentCultures) +559
   System.Web.Compilation.BuildManager.InvokePreStartInitMethods(ICollection`1 methods) +132
   System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath, Boolean& isRefAssemblyLoaded) +102
   System.Web.Compilation.BuildManager.ExecutePreAppStart() +153
   System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +516

[HttpException (0x80004005): The pre-application start initialization method Run on type WebActivatorEx.ActivationManager threw an exception with the following error message: Exception has been thrown by the target of an invocation..]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context)+9915300
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +101
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +254


It seems like it still tries to work on the default ports...

The same site works fine on other developer machines (but on the default ports) and I have NOT specified any default ports anywhere in my solution configuration.

I work on a computer that has user on a domain, but I have installed the SB with a non-domain account (it dodn't work otherwise). The only way to configure successfully the SB was to change the default ports by prepending a '1' to them.

I don't know what is wrong with the default ports. They are not occupied and the firewall rules seem to be in place.

Any ideas?


Viewing all articles
Browse latest Browse all 1916

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>