Hi,

I'm consulting on a project that has two solutions, a client solution, and a
middletier solution. The middle tier solution is hosted in asp.net.

I want to debug something in the middle tier, and I've been told that I have
to attach to the asp.net process.

So I add a breakpoint on the code in the middle tier. I build the middle
tier solution and then the client solution in debug mode. Then I start the
client application. Then I'm supposed to attach to the ASP.NET process.

I've tried to attach to the asp.net process from both solutions but the
debugger doesnt stop at the breakpoint.

The middletier is not in the client solution, but is referenced

Can Anyone help?

Re: How to attach to a process middle tier for debugging by JJ

JJ
Wed May 10 01:14:10 CDT 2006


1.What version of .NET?
2. Is the client executing on the same machine as the ASP.NET?

jeff

"MrNetDeveloper" <MrNetDeveloper@discussions.microsoft.com> wrote in message
news:5773608D-D1DC-49AB-B781-94CD4AB8C673@microsoft.com...
> Hi,
>
> I'm consulting on a project that has two solutions, a client solution, and
> a
> middletier solution. The middle tier solution is hosted in asp.net.
>
> I want to debug something in the middle tier, and I've been told that I
> have
> to attach to the asp.net process.
>
> So I add a breakpoint on the code in the middle tier. I build the middle
> tier solution and then the client solution in debug mode. Then I start the
> client application. Then I'm supposed to attach to the ASP.NET process.
>
> I've tried to attach to the asp.net process from both solutions but the
> debugger doesnt stop at the breakpoint.
>
> The middletier is not in the client solution, but is referenced
>
> Can Anyone help?



Re: How to attach to a process middle tier for debugging by MrNetDeveloper

MrNetDeveloper
Wed May 10 06:17:01 CDT 2006

Hi Jeff,

Thanks for replying!

> 1.What version of .NET?

2.0

> 2. Is the client executing on the same machine as the ASP.NET?

Yes

Re: How to attach to a process middle tier for debugging by Sericinus

Sericinus
Wed May 10 08:14:48 CDT 2006

MrNetDeveloper wrote:
...
> So I add a breakpoint on the code in the middle tier. I build the middle
> tier solution and then the client solution in debug mode. Then I start the
> client application. Then I'm supposed to attach to the ASP.NET process.
>
> I've tried to attach to the asp.net process from both solutions but the
> debugger doesnt stop at the breakpoint.
>
> The middletier is not in the client solution, but is referenced
>
> Can Anyone help?

Try to start middle tier project in debug mode (I assume, this is
web service or web application). It will launch IE and start the project.
Now you have the actual process and should be able to hit a break point
from you client project.

Re: How to attach to a process middle tier for debugging by JJ

JJ
Wed May 10 22:49:48 CDT 2006

The easiest is probably to;

1. Compile your client to trigger the target function you wish to debug in
the middle tier.
2. Open your middle-tier target project and set break point.(Important:
Ensure there's no other image of this middle-tier anywhere (i.e. GAC, if
applicable))
3.Attach to ASP.NET.
4. Execute your client from windows or console and trigger (from step 1) the
event to start the call.

That should work.
Good luck.
Jeff <www.ruamkwamkid.com>


"MrNetDeveloper" <MrNetDeveloper@discussions.microsoft.com> wrote in message
news:9634E4E1-665C-4B8B-B9DF-73407865CCEC@microsoft.com...
> Hi Jeff,
>
> Thanks for replying!
>
>> 1.What version of .NET?
>
> 2.0
>
>> 2. Is the client executing on the same machine as the ASP.NET?
>
> Yes