BizTalk Server Applications Integration - Problems with WinXP BTS2002 C# Debug

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server Applications Integration > October 2004 > Problems with WinXP BTS2002 C# Debug





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Problems with WinXP BTS2002 C# Debug
Matthias Marx

2004-10-15, 9:09 pm

Hello,

i habe a huge problem.
I developed an AIC, Win XP Sp2, c# for a BTS 2002 Server.

I do all like it discriped in some articles (NG, MSDN).

I comiple it as COM+ interop, the DLL is registrated in COM+,

The BTS Process "C:\Program Files\Microsoft BizTalk Server\MSCIS.exe" is =
as chosen as startup application in the VS.NET.


I start my program in the debug mode and nothing happend.
The BTS doesn't started, the file dosen't catch.

After a short time my VS enviroment leaves the debug mode.


what do i wrong, any idea?

thanks=20

matthias


larry franks

2004-10-15, 9:09 pm

Hi Matthias, I would suggest either registering this as a com+ server
application package or adding code in the component to invoke the debugger.

To register as a server application you need to add some attributes to the
class:
& #91;assembly:ApplicationActivation(Activ
ationOption.Server)] //so you can run
it as a server application in com+
& #91;assembly:ApplicationAccessControl(fa
lse)] //turns off annoying access
control for testing
[componentaccesscontrol(false)] //turns off even more annoying access
control for testing

I believe that's all you need, it's all I have on my whiteboard at least.
Should let you run regsvcs against the component to load it on component
services as a server application, then you can start it, attach to the dll
host process it runs in and debug all day.

The other way that's sometimes useful is to add a line of code that says:
if(System.Diagnostics.Debugger.IsAttached==false)
System.Diagnostics.Debugger.Launch();

This should popup a dialog asking if you want to debug, attach and break on
the following line.

Larry Franks

This posting is provided "AS IS" with no warranties,and confers no rights.
Subscribe at
http://support.microsoft.com/defaul...msdn/nospam.asp
&SD=msdn
--------------------
| From: "Matthias Marx" <matthias.marx@nospam.gmx.net>
| Subject: Problems with WinXP BTS2002 C# Debug
| Date: Tue, 12 Oct 2004 10:50:46 +0200
| Lines: 26
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: quoted-printable
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| Message-ID: <uWBswkDsEHA.3588@tk2msftngp13.phx.gbl>
| Newsgroups: microsoft.public.biztalk.appintegration
| NNTP-Posting-Host: 213.69.204.203
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msftngp13.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.biztalk.appintegration:7355
| X-Tomcat-NG: microsoft.public.biztalk.appintegration
|
| Hello,
| i habe a huge problem.
| I developed an AIC, Win XP Sp2, c# for a BTS 2002 Server.
| I do all like it discriped in some articles (NG, MSDN).
| I comiple it as COM+ interop, the DLL is registrated in COM+,
| The BTS Process "C:\Program Files\Microsoft BizTalk Server\MSCIS.exe" is
as chosen as startup application in the VS.NET.
| I start my program in the debug mode and nothing happend.
| The BTS doesn't started, the file dosen't catch.
| After a short time my VS enviroment leaves the debug mode.
| what do i wrong, any idea?
| thanks
| matthias
|

Matthias Marx

2004-10-15, 9:09 pm

Hi Larry
It doesn't work!

I try this

> & #91;assembly:ApplicationActivation(Activ
ationOption.Server)] //so you =

can run=20
> it as a server application in com+
> & #91;assembly:ApplicationAccessControl(fa
lse)] //turns off annoying =

access=20
> control for testing
> [componentaccesscontrol(false)] //turns off even more annoying access =


> control for testing


following I could see: The BTS starts with the start from VS in debug =
mode.
BTS catch the file, but the BTS didn't stop at the break points.

any idea?

Matthias


larry franks

2004-10-19, 5:48 pm

Did you load the application into a serviced com+ component usnig regsvcs?
If so, go to component services MMC, start the COM+ component this is
hosted in, and then attach to that. In this case your component gets
launched in a dllhost process, so you can attach to it and not biztalk.

Larry Franks

This posting is provided "AS IS" with no warranties,and confers no rights.
Subscribe at
http://support.microsoft.com/defaul...msdn/nospam.asp
&SD=msdn
--------------------
| From: "Matthias Marx" <matthias.marx@nospam.gmx.net>
| References: <uWBswkDsEHA.3588@tk2msftngp13.phx.gbl>
<msHJ71JsEHA.2840@cpmsftngxa10.phx.gbl>
| Subject: Re: Problems with WinXP BTS2002 C# Debug
| Date: Wed, 13 Oct 2004 11:37:30 +0200
| Lines: 24
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: quoted-printable
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| Message-ID: <#sZOEhQsEHA.2720@TK2MSFTNGP12.phx.gbl>
| Newsgroups: microsoft.public.biztalk.appintegration
| NNTP-Posting-Host: 213.69.204.203
| Path:
cpmsftngxa10.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP12
.phx.gbl
| Xref: cpmsftngxa10.phx.gbl microsoft.public.biztalk.appintegration:7424
| X-Tomcat-NG: microsoft.public.biztalk.appintegration
|
| Hi Larry
| It doesn't work!
| I try this
| > & #91;assembly:ApplicationActivation(Activ
ationOption.Server)] //so you can
run
| > it as a server application in com+
| > & #91;assembly:ApplicationAccessControl(fa
lse)] //turns off annoying access
| > control for testing
| > [componentaccesscontrol(false)] //turns off even more annoying access
> control for testing

| following I could see: The BTS starts with the start from VS in debug
mode.
| BTS catch the file, but the BTS didn't stop at the break points.
| any idea?
| Matthias
|

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com