10-16-04 02:09 AM
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
|
[ Post a follow-up to this message ]
|