Geeks With Blogs

News View Michael Stephenson's profile on BizTalk Blog Doc View Michael Stephenson's profile on LinkedIn
Michael Stephenson keeping your feet on premise while your heads in the cloud

Problem

I came across the following problem the other day.  I had setup a send port to pick up messages from the messagebox.  I then enlisted and started it.  All good so far.

To ensure this port was setup as part of the build I exported the bindings.

At this point I need to mention a little about the build process for our solution.  On the project we have a large number of test environments so in order to simplify the management of config settings between environments the solution contains a custom MsBuild task which will use a custom xml dictionary and a template of the binding file.

During the build the process will run the template against the dictionary and produce a number of correctly configured files for each environment.  We typically do this with the BizTalk config file, WSE Adapter policy cache and each applications binding files.

In this particular instance when I amended the template and produced the new bindings to use for this application I started getting the following error once they had been imported and I tried to enlist the ports.

"Could not enlist send port '[Send Port Name]' Exception from HRESULT: 0xC00CE557(Microsoft.BizTalk.ExplorerOM) "

The binding file would import without error so I assumed it was something related to setting up subscriptions when the port was enlisted which for this port indicated a problem with the filter.

When I checked the filter page of the port settings there was no filter listed yet there is a filter defined in the bindings file.

Work Around

After some experimentation I found that it was definately the filter and I think what was happening was that when I edited the file and saved it through Visual Studio it must be affecting the encoding of the file when it was saved.  When I edited the file through Visual Studio I could not successfully import the bindings to setup the port.  If I configured the template only through Notepad the import of bindings into BizTalk would setup the filter correctly.

Something to consider if you experience a similar problem

UPDATE!!

I actually found the cause of the problem for this.  Basically when I opened the binding file in Visual Studio somehow the xml within the filter property of the send port had reformatted slightly.  It should be like below:

<Filter>&lt;?xml version="1.0" encoding="utf-16"?&gt;

                                &lt;Filter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;

                                &lt;Group&gt;

                                &lt;Statement Property="BTS.MessageType" Operator="0" Value="http://Acme#Remittance" /&gt;

                                &lt;/Group&gt;

                                &lt;/Filter&gt;</Filter>

But it had changed to the following:

 

<Filter>

&lt;?xml version="1.0" encoding="utf-16"?&gt;

                                &lt;Filter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;

                                &lt;Group&gt;

                                &lt;Statement Property="BTS.MessageType" Operator="0" Value="http://Acme#Remittance" /&gt;

                                &lt;/Group&gt;

                                &lt;/Filter&gt;

</Filter>

The key difference is the new line before and after the content within the element.  When I removed these it imported correctly.

Posted on Saturday, January 12, 2008 11:24 AM BizTalk | Back to top


Comments on this post: Problem Enlisting Send Port

# re: Problem Enlisting Send Port
Requesting Gravatar...
Thank you! You've just saved me a whole day of work!
Left by ozzy on Feb 11, 2008 5:19 PM

# re: Problem Enlisting Send Port
Requesting Gravatar...
Thanks! I ran into the exact same problem today.
Left by Andy on Feb 15, 2008 1:20 PM

# re: Problem Enlisting Send Port
Requesting Gravatar...
I am still having the exact problem!

I was able to figure-out that the problem is because of the <Filter>. However, after importing the revised Binding files, somehow, it is adding junks to it. As, I was unable to enlist the send port, I exported the bindings (which I had applied after correcting the <filter>) and I found the following entry:

<Filter>
&lt;?xml version="1.0" encoding="utf-16"?&gt;
&lt;Filter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" /&gt;
</Filter>

Any thought on this?
Left by Truj on Apr 02, 2008 8:55 PM

# re: Problem Enlisting Send Port
Requesting Gravatar...
I just found the work around on that :-)

I added a dummy filter to the port and deleted it !!!

Still, I am not sure WHY binding file is adding a blank filter while importing it to BTS Admin console???
Left by Truj on Apr 02, 2008 9:17 PM

# re: Problem Enlisting Send Port
Requesting Gravatar...
You saved me a lot of work. I copy-pasted the content of a backup binding file as I wrecked the one I was using at the time. Thank you.
Left by Henrik on Apr 16, 2008 2:44 PM

# re: Problem Enlisting Send Port
Requesting Gravatar...
Great Post! It had the same problem!
Thanks!
Best wishes From Hamburg!
Left by justMe on Sep 22, 2008 11:27 AM

# re: Problem Enlisting Send Port
Requesting Gravatar...
Great post! I had the same odd problem. Nice one.
Left by Ed on Sep 30, 2008 3:40 PM

# re: Problem Enlisting Send Port
Requesting Gravatar...
Mike,
Thanks for the blog post - saved me a lot of time.

I did however have the same problem as Truj above in that I had a <Filter> element with an empty filter that was still causing problems:

<Filter>
&lt;?xml version="1.0" encoding="utf-16"?&gt;
&lt;Filter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" /&gt;
</Filter>

BizTalk still didn't want to start the Send Port with this configuration in the Binding File... Given that the encoded Xml defines an empty filter, I simply changed the upper-level Filter element to an empty element and this resolved the problem:

<Filter />

Cheers, Nick.
Left by Nick Heppleston on Jan 09, 2009 1:58 PM

# re: Problem Enlisting Send Port
Requesting Gravatar...
Michael,

Thanks man !! I would have spent days to figure out this on my own. Your workaround fixed my problem in a jiffy :)
Left by ND on Feb 10, 2009 5:50 AM

# re: Problem Enlisting Send Port
Requesting Gravatar...
Dude,
You saved my bacon too. This is such a weird error. If the filter is wrong i would expect it to not even import the send port.

cheers
benjy
Left by benjy on Apr 28, 2009 7:59 PM

# re: Problem Enlisting Send Port
Requesting Gravatar...
You saved me a second time - I should really start to remember what HRESULT: 0xC00CE557 means.... I owe you a beer next time I see you ;-)

Nick.
Left by Nick Heppleston on May 26, 2009 3:24 PM

# re: Problem Enlisting Send Port
Requesting Gravatar...
Well done, you saved my time! I have seen that additional lines were put by visual studio when editing bindings file, but I didn't thought this could lead to such error.
Thanks a lot!
Left by Etienne on Jun 09, 2009 10:52 AM

# re: Problem Enlisting Send Port
Requesting Gravatar...
Excellent tip, thanks

Nick
Left by Nick on Jun 12, 2009 11:17 AM

# re: Problem Enlisting Send Port
Requesting Gravatar...
Excellent!

I used the work around of Truj (add a dummy filter to the port and deleted it) and it worked like a charm...

Thank you
Left by Arbiorix on Aug 26, 2009 5:27 AM

# re: Problem Enlisting Send Port
Requesting Gravatar...
Thank you
You saved my whole night
Left by Kishore Dogiparti on Oct 28, 2009 6:42 PM

# re: Problem Enlisting Send Port
Requesting Gravatar...
Holy crap thank you so much. this rules.
Left by Dennis Palmer on Jan 16, 2010 10:35 PM

# re: Problem Enlisting Send Port
Requesting Gravatar...
Thanks Mike, saved me too!
Left by Rob Bowman on Feb 23, 2010 12:13 PM

# re: Problem Enlisting Send Port
Requesting Gravatar...
its funny i keep forgetting about this post and then get the issue and google it and end up back here... think its my most popular ever post
Left by mike stephenson on Feb 23, 2010 5:20 PM

# re: Problem Enlisting Send Port
Requesting Gravatar...
This was exactly what I needed! Thanks for taking the time to make the post, I really appreciate it!
Left by Andrew Dunaway on Mar 04, 2010 3:51 PM

# re: Problem Enlisting Send Port
Requesting Gravatar...
Thank you so much, saved me tonnes of time
Left by Westy on Aug 19, 2010 9:55 AM

# re: Problem Enlisting Send Port
Requesting Gravatar...
Thank You! It saved me a lot of time.
Left by Rajesh on Sep 17, 2010 10:04 AM

# re: Problem Enlisting Send Port
Requesting Gravatar...
Thank you very much, it was very useful
Left by Edwin on Jan 15, 2011 7:36 PM

# re: Problem Enlisting Send Port
Requesting Gravatar...
Cann't thank you enough
Left by Ajai on Feb 10, 2011 6:50 AM

# re: Problem Enlisting Send Port
Requesting Gravatar...
Damn! This has got to be the weirdest problem I have ever had with BTS. Thanks alot!
Left by TomoLondon on Apr 13, 2011 9:44 AM

# re: Problem Enlisting Send Port
Requesting Gravatar...
Thank you so much! You just saved me a lot of manual labour :-)

/Emil
Left by Emil on Apr 20, 2011 8:56 AM

# re: Problem Enlisting Send Port
Requesting Gravatar...
I'll add my name to the list... Thanks!

We had a time-critical deploy, and for some reason, our binding files, which have worked for years, suddenly started throwing this error. I guess someone edited them in VS.
Left by Adman on Jun 08, 2011 11:09 AM

# re: Problem Enlisting Send Port
Requesting Gravatar...
Got the same problem but I clear it with the opposite method by deleting the new lines
Left by jeremy ronk on Aug 03, 2011 8:50 PM

# re: Problem Enlisting Send Port
Requesting Gravatar...
Thanks for the tip and good job figuring this out. I had the same problem today and probably would have taken way too much time to figure it out had it not been for your article.
Left by Ed Jones on Dec 01, 2011 5:55 AM

# re: Problem Enlisting Send Port
Requesting Gravatar...
Great post! Had the same issue yesterday, and this extra newlines were the issue. Thanks for saving me lots of time!
Left by Dan Toomey on Dec 21, 2011 8:30 AM

# re: Problem Enlisting Send Port
Requesting Gravatar...
Great help from this post.. thanks for saving my day..
Left by Praveen Behara on Nov 15, 2012 2:03 AM

# re: Problem Enlisting Send Port
Requesting Gravatar...
Another simple way is just add a dummy filter in the port configuration and click apply and then click okay. Now just remove that filter configuration and click okay. Try to enlist the port and you will be able to. This saves the time of importing the binding file once again.
Left by Dinesh on Apr 26, 2013 12:02 AM

# re: Problem Enlisting Send Port
Requesting Gravatar...
Thanks a lot..You saved my time..please keep informing like this...
Left by dutta on Oct 28, 2013 11:01 PM

# re: Problem Enlisting Send Port
Requesting Gravatar...
Thank you! You've just saved me too
Left by Venkat Kundavaram on May 29, 2015 6:36 AM

# re: Problem Enlisting Send Port
Requesting Gravatar...
Thanks a ton! U saved my day!
Left by Pragyan on May 14, 2016 2:55 AM

# re: Problem Enlisting Send Port
Requesting Gravatar...
goes one

a pe mens hill shoes,rfect symbiosis with the voice of Tobias Langguth.

Sure that it really rocks, which were on the b down jackets,ass

great Johannes Schaedlich and JEP Schilgen be required on drums.
Left by linming0303 on Nov 08, 2017 6:31 PM

Your comment:
 (will show your gravatar)


Copyright © Michael Stephenson | Powered by: GeeksWithBlogs.net