Neuron ESB User Network

The Service Bus for the Connected Business

I'm trying to connect to Neuron Server running on my local machine and getting following PartyConnectException message while trying to establish connection to it.

 

Failed to connect to channel. An error occurred attempting to create the MSMQ Messaging Channel for the party to communicate with the Topic

 

Topic: TopicId

Party ID: PartyId

MSMQ Queue Server: servername

MSMQ Queue Path: msmq.formatname:Direct=OS:servername\private$\PartyId_TopicId_req

 

Exception: The HTTPGetEnabled property of ServiceMetadataBehavior is set to true and the HttpGetUrl property is a relative address, but there is no http base address. Either supply an http base address or set HttpGetUrl to an absolute address.

 

The c# code and the app setting are:

 

using(Party party = new Party(partyId))

{

  PartyConnectExceptions result = party.Connect();

  party.Send(topicId, obj);

}

 

<add key="esbServiceAddress" value="net.tcp://localhost:50000" />

<add key="esbZone" value="Enterprise" />

<add key="esbClientId" value="PartyId" />

 

Please advise.

 

Views: 515

Reply to This

Replies to This Discussion

Hi Sam. The error seems a bit confusing, but let's see if we can work through it.

The exception message "The HTTPGetEnabled property..." indicates that the ServiceMetadataBehavior is configured for the WCF services that the client is trying to use to connect to the server. Did you modify the ESBService.exe.config file to enable service metadata, or do you have that configured for the program that you build that's using the Party class to connect to the ESB service?

Can you try a simple ESB configuration with a TCP topic, a publisher, and a subscriber, and then use your program to connect as either the publisher or subscriber? When you do that, are you still getting this error?

Michael Collins
Neuron ESB Support

Hi Michael, Thanks for your reply. I tried connecting to a very simple ESB configuration from a Console application and that worked, but the same ESB configuration didn't work when I tried from my wcf service application.

 

After some more investigation and playing around with the service endpoint metadata binding in wcf service config I was able to resolve the issue.

 

But one thing that I'm still wondering about is why neuron looks into the end point configuration of my wcf service?

Cheers

Sam

Hi Sam,

I've had the same issue and I've lolved it by disableing httpGet and httpsGet for my WCF behavior:



I suppose Neuron Client looking in the web.config is a bug. May be the client uses a web.config internaly and instead of loading the right one it loads the web.config belonging to the WCF service that use the Client.

I hope this malfunction is not afecting other aspects of the Neuron Client behavior.

Any support from Neuron would be appreciated.

Bernat

Hi Bernat and Sam,

I'm having the same problem. How you guys resolve this issue?

If I set the httpGetEnabled and httpsGetEnabled to false under serviceMetadata, my WCF will not run and will complain no meta data.

Cheers,

Gihan.

As Bernat suggested, I found the solution for this just remove any service behaviors without a name. ESB always look at that and throws this error. Either give a name to the behavior or set httpGetEnabled=false and httpsGetEnabled=false.

<behavior name="SomeBehavior">
<serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="true" />
</behavior>

OR

<behavior>
<serviceMetadata httpGetEnabled="false" httpsGetEnabled="false" />
<serviceDebug includeExceptionDetailInFaults="true" />
</behavior>

Hope this helps someone.

Cheers,

Gihan.

RSS

Neuron ESB Product Support Forums and Communities

Latest Activity

Anupama Nair posted a discussion

Marketo Adapter Invalid Token

Hi,We are using the Marketo adapter to push account updates to Marketo. It works well for some time then starts failing with Invalid Token unless restarted. Is there a configuration that can be done so it can auto refresh the token when required?Thanks!See More
Nov 6, 2023
Sayantini Basak posted a discussion

Maximum payload size(REST API) for requests interfacing to NeuronESB

I am new to Neuron ESB and in our current scenario,We need to process batch transactions comprising of ~1000 records and send them to Neuron ESB for further processing. I would like to understand what is the maximum size of payload that can be transferred using REST interface to Neuron ESB.See More
Jul 22, 2022
Profile IconRobert E Dunie and Sayantini Basak joined Neuron ESB User Network
Apr 28, 2022
Profile IconDayanand, Frederic C, Steffen Greve-Oksfeldt and 1 more joined Neuron ESB User Network
Mar 16, 2022
Profile IconCam Vong and Mitja Luznar joined Neuron ESB User Network
Jan 27, 2022
Profile IconWill Hitzges, Chad Parsons, michael larsen and 4 more joined Neuron ESB User Network
Jun 11, 2021
Anupama Nair posted a discussion

ODBC stored proc polling with temporary tables

We have set up an ODBC adapter to poll a stored proc.We found that if the stored proc has a temporary table defined the rows returned are always 0.Any idea why this would be and what we can do to get around it?See More
Dec 14, 2020
Prasanth Kharade is now a member of Neuron ESB User Network
Dec 30, 2019

Badge

Loading…

© 2024   Created by Neuron Admin.   Powered by

Badges  |  Report an Issue  |  Terms of Service