Quantcast
Channel: BizTalk Server General Forum
Viewing all articles
Browse latest Browse all 872

Cannot call helper function in dll from BRE

$
0
0

I'm trying to implement a simple solution in BRE. We are going to need some helper functions in a dll, but nothing too complicated. I'm referencing Richard Seroter's blog post here http://seroter.wordpress.com/2009/11/11/validating-incoming-data-using-the-biztalk-business-rules-engine/ and trying to implement something simple. As he says it should be as simple as "After GAC-ing that helper DLL, I’m ready to roll", but something is wrong.

My rules run fine when I don't try to call the helper dll. As soon as I call a helper function in the Action of a rule nothing works anymore. The output of the policy tester doesn't have any error messages, it just seems that everything runs as before except that when the rule is matched it is not added to the agenda and the rule engine finishes after retracting all the facts. I've reduced down the helper function to take just a string as a parameter and write to the debug output, yet this action still causes the rule engine to fail.

It should be noted that I am implementing this on the Azure BizTalk 2013 Beta image, so the helper dll is developed in VS2012. The helper dll and method I want to call shows up fine in the Business Rules Composer and I can add it as a vocabulary if I wish. I suspected that the issue might be to do with the new GAC location in .NET 4.0 so I created the same helper dll targeting .NET 2.0 which got stored to the old GAC. No matter which version I use the rule engine fails. Any help would be appreciated as I'm running out of things to think of and have reduced this test down to the simplest pieces possible.


Viewing all articles
Browse latest Browse all 872

Trending Articles



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