Problems with WinXP BTS2002 C# Debug
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > BizTalk Server > BizTalk Server Applications Integration > Problems with WinXP BTS2002 C# Debug




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Problems with WinXP BTS2002 C# Debug  
Matthias Marx


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-16-04 02:09 AM

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







[ Post a follow-up to this message ]



    RE: Problems with WinXP BTS2002 C# Debug  
larry franks


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
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 ]



    Re: Problems with WinXP BTS2002 C# Debug  
Matthias Marx


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-16-04 02:09 AM

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 =[/vbco
l]
[vbcol=seagreen]
> 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







[ Post a follow-up to this message ]



    Re: Problems with WinXP BTS2002 C# Debug  
larry franks


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-19-04 10: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 acc
ess
| > 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
|






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 12:25 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register