Home Page › Forums › BizTalk 2004 – BizTalk 2010 › Debugging .NET Code during BizTalk Orchestration
- This topic has 6 replies, 1 voice, and was last updated 9 years, 6 months ago by
community-content.
-
AuthorPosts
-
-
March 5, 2007 at 9:39 AM #17858
Hi,
does anybody know if there is a possibility to debug .NET Code while an BizTalk Orchestration is running that calls this .NET Code?Background:
I'm using the BizTalk Expression Editor, to make a decision in an Orchestration (if…else). But when I test the Orchestration it doesn't work. The BizTalk Orchestration receives the Receive-File/XML File/Message which I put into an folder. That means the file disappears in that folder, but it doesn't apear in the folder where it should arrive.The XLANG/s expression at the decision form is as following:
XLANG/s: MethodContainer.CheckAnmeldung.DuplicateExists(AnmeldungInstance)
|| MethodContainer.CheckAnmeldung.CheckGasthoerer(AnmeldungInstance)MethodContainer is a ClassLibrary, CheckAnmeldung is a Class in it and DuplicateExists and CheckGasthoerer are Methods. AnmeldungInstance is the received a XLANGMessage.
I built my BizTalk Project analog to the Tutorial example.
Greetz
Peejay -
March 5, 2007 at 6:49 PM #17860
If you set a breakpoint in your class method, and do "debug … attach to process" and choose the btsntsvc.exe, when that code is called from the orchestration, it should jump to your code and let you do standard debugging.
-
March 6, 2007 at 7:42 AM #17865
[quote user="rseroter"]If you set a breakpoint in your class method, and do "debug … attach to process" and choose the btsntsvc.exe, when that code is called from the orchestration, it should jump to your code and let you do standard debugging.[/quote]
Richard,
Does it matter if his code is compiled with the Debug or Release flag?
-wa
-
March 6, 2007 at 8:07 AM #17866
That's a really good question. Since I always do this while developing, I'm sure I'm in "debug" mode. Might want to try flipping that to debug before trying to step through.
BTW, "wa", you and I need to make up 😉 You've been posting some kick *ss responses lately.
-
March 6, 2007 at 1:09 PM #17868
Even though I haven't tried it and the question seems already been solved:
http://msdn2.microsoft.com/en-us/library/aa577412.aspx
BR, Hansi
-
March 7, 2007 at 7:26 AM #17878
Thank you guys for your posts! Unfortunately the debugger doesn't jump into my Code anyway:-(. Are there more or any special things to pay attention to?
Also that expression, they tell you to put into an expression shape (System.Diagnostics.Debug.WriteLine(iResult);) in the article postet by Hansi is not valid because iResult can't be found.-
March 9, 2007 at 3:46 AM #17918
Problem solved!
-
-
-
-
-
-
-
AuthorPosts
- The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.