473,320 Members | 2,117 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

How to debug Serviced Component in vb.NET?

Could anyone tell me how to debug a Serviced Component (COM+) in .NET?
I tried to attach the debugger to the host process, but failed, got error
"unable to attach the process. There is no managed code running in the
process. In order to attach to a process with the .NET debugger, managed code
must be running in the process before attaching."
Thanks
Jul 21 '05 #1
6 6196

Hi William,

A step-by-step process to debug COM+ has been given her
http://msdn.microsoft.com/library/de...components.asp

Also, you would find below link useful
http://www.informit.com/articles/art...70910&seqNum=1

HTH

With Best Regards
Naveen K S

"william" wrote:
Could anyone tell me how to debug a Serviced Component (COM+) in .NET?
I tried to attach the debugger to the host process, but failed, got error
"unable to attach the process. There is no managed code running in the
process. In order to attach to a process with the .NET debugger, managed code
must be running in the process before attaching."
Thanks

Jul 21 '05 #2
Hi Naveen,
I tried the way in these two articles, but I keep getting error(see error
message inmy first post). In one article it saying need put both COM+ and
client project in the same .NET solution, and another article says the client
and the service should be in same assembly. What do they mean exactly? What I
have done is as follows:
1. create a COM+ using serviced component in VB.NET, compile it, the
register it.
2. add a new project into the COM+ project environment, so that they become
a project group, then do all steps which is described in those two articles.
Is it ok?
Is there any other way to debug it?
Thanks.
"Naveen" wrote:

Hi William,

A step-by-step process to debug COM+ has been given here
http://msdn.microsoft.com/library/de...components.asp

Also, you would find below link useful
http://www.informit.com/articles/art...70910&seqNum=1

HTH

With Best Regards
Naveen K S

"william" wrote:
Could anyone tell me how to debug a Serviced Component (COM+) in .NET?
I tried to attach the debugger to the host process, but failed, got error
"unable to attach the process. There is no managed code running in the
process. In order to attach to a process with the .NET debugger, managed code
must be running in the process before attaching."
Thanks

Jul 21 '05 #3
I tried again, now I didn't get that error, I can set breakpoint in my class,
and the process stopped at breakpoint as expected. But I couldn't exam
variable value. I have a integer variable and a string variable, from me or
Locals window, I saw error in value column "<error:cannot evaluate field of a
proxy object>". I couldn't set value from immediate window either.
What's wrong?

Thanks
"william" wrote:
Hi Naveen,
I tried the way in these two articles, but I keep getting error(see error
message inmy first post). In one article it saying need put both COM+ and
client project in the same .NET solution, and another article says the client
and the service should be in same assembly. What do they mean exactly? What I
have done is as follows:
1. create a COM+ using serviced component in VB.NET, compile it, the
register it.
2. add a new project into the COM+ project environment, so that they become
a project group, then do all steps which is described in those two articles.
Is it ok?
Is there any other way to debug it?
Thanks.
"Naveen" wrote:

Hi William,

A step-by-step process to debug COM+ has been given here
http://msdn.microsoft.com/library/de...components.asp

Also, you would find below link useful
http://www.informit.com/articles/art...70910&seqNum=1

HTH

With Best Regards
Naveen K S

"william" wrote:
Could anyone tell me how to debug a Serviced Component (COM+) in .NET?
I tried to attach the debugger to the host process, but failed, got error
"unable to attach the process. There is no managed code running in the
process. In order to attach to a process with the .NET debugger, managed code
must be running in the process before attaching."
Thanks

Jul 21 '05 #4

Hi William..

I don't think any problem should be there if you have followed steps
described in article as I was successful in doing so.

Well, what does your event viewer says? Check the event details for
application and then try to resolve it. If you can't then post here I would
try to help you.

With Best Regards
Naveen K S

"william" wrote:
I tried again, now I didn't get that error, I can set breakpoint in my class,
and the process stopped at breakpoint as expected. But I couldn't exam
variable value. I have a integer variable and a string variable, from me or
Locals window, I saw error in value column "<error:cannot evaluate field of a
proxy object>". I couldn't set value from immediate window either.
What's wrong?

Thanks
"william" wrote:
Hi Naveen,
I tried the way in these two articles, but I keep getting error(see error
message inmy first post). In one article it saying need put both COM+ and
client project in the same .NET solution, and another article says the client
and the service should be in same assembly. What do they mean exactly? What I
have done is as follows:
1. create a COM+ using serviced component in VB.NET, compile it, the
register it.
2. add a new project into the COM+ project environment, so that they become
a project group, then do all steps which is described in those two articles.
Is it ok?
Is there any other way to debug it?
Thanks.
"Naveen" wrote:

Hi William,

A step-by-step process to debug COM+ has been given here
http://msdn.microsoft.com/library/de...components.asp

Also, you would find below link useful
http://www.informit.com/articles/art...70910&seqNum=1

HTH

With Best Regards
Naveen K S

"william" wrote:

> Could anyone tell me how to debug a Serviced Component (COM+) in .NET?
> I tried to attach the debugger to the host process, but failed, got error
> "unable to attach the process. There is no managed code running in the
> process. In order to attach to a process with the .NET debugger, managed code
> must be running in the process before attaching."
> Thanks

Jul 21 '05 #5
Hi Naveen,
I did exact what the article said. No event log.
The problem is I couldn't check property's value, no matter it's public or
private.(These properties are declared in class level). I saw <error: cannot
evaluate field of a proxy object> from locals window in debug mode(I am able
to set breakpoint in class, and the program stopped there). I could exam
function level variable(declared in function or sub). Any idea?

Thanks.
"Naveen" wrote:

Hi William..

I don't think any problem should be there if you have followed steps
described in article as I was successful in doing so.

Well, what does your event viewer says? Check the event details for
application and then try to resolve it. If you can't then post here I would
try to help you.

With Best Regards
Naveen K S

"william" wrote:
I tried again, now I didn't get that error, I can set breakpoint in my class,
and the process stopped at breakpoint as expected. But I couldn't exam
variable value. I have a integer variable and a string variable, from me or
Locals window, I saw error in value column "<error:cannot evaluate field of a
proxy object>". I couldn't set value from immediate window either.
What's wrong?

Thanks
"william" wrote:
Hi Naveen,
I tried the way in these two articles, but I keep getting error(see error
message inmy first post). In one article it saying need put both COM+ and
client project in the same .NET solution, and another article says the client
and the service should be in same assembly. What do they mean exactly? What I
have done is as follows:
1. create a COM+ using serviced component in VB.NET, compile it, the
register it.
2. add a new project into the COM+ project environment, so that they become
a project group, then do all steps which is described in those two articles.
Is it ok?
Is there any other way to debug it?
Thanks.
"Naveen" wrote:

>
> Hi William,
>
> A step-by-step process to debug COM+ has been given here
> http://msdn.microsoft.com/library/de...components.asp
>
> Also, you would find below link useful
> http://www.informit.com/articles/art...70910&seqNum=1
>
> HTH
>
> With Best Regards
> Naveen K S
>
> "william" wrote:
>
> > Could anyone tell me how to debug a Serviced Component (COM+) in .NET?
> > I tried to attach the debugger to the host process, but failed, got error
> > "unable to attach the process. There is no managed code running in the
> > process. In order to attach to a process with the .NET debugger, managed code
> > must be running in the process before attaching."
> > Thanks

Jul 21 '05 #6
jveliz
1
I had the same problem, and I changed the Enable Optimizations to not checked under Project \ Properties \ Configuration Properties \ Optimizations

And make shure under the build page you check the Generate debugging information.

Good luck.
Sep 12 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Rich | last post by:
the walkthrough for debugging a serviced component (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vsdebug/html/vxtskdebuggingcom10components.asp) is for VC++.NET. Is there a...
9
by: Stan | last post by:
Here is my scenario: Web server ------------ Framework 1.1 Application proxy for the serviced component Component server ------------------- Framework 1.0
2
by: Ansari | last post by:
hi all, I want to use serviced component in ASP.NET any walkthrough or link to a resource. I have tried a lot but serviced component could be initialized in ASP.NET page. However I can...
0
by: Mihiri | last post by:
Hi, I have created sample .Net Serviced Component and registered it with com+ services as a server application. (windows 2000). In my client application(vb.net) , Com+ objects are disposed...
5
by: william | last post by:
Could anyone tell me how to debug a Serviced Component (COM+) in .NET? I tried to attach the debugger to the host process, but failed, got error "unable to attach the process. There is no managed...
0
by: Mark Mims | last post by:
I am having a problem with a .NET serviced component running in MTS trying to call a web service on a remote machine on our internal network. The serviced component is using a domain account for...
0
by: =?Utf-8?B?QkY=?= | last post by:
I am trying to work on Serviced Component in .NET 2.0 environment. I don't see much information about serviced component in .NET 2.0 environment. I worked on serviced component 2 years ago with...
2
by: =?Utf-8?B?QkY=?= | last post by:
I am currently working on moving our business objects into COM+ serviced components. But in the process, there are too many changes such ComVisible and serviced component does not support...
0
by: bharathreddy | last post by:
In .Net COM+ components are referred to as serviced components, Namespace: System.EnterpriseServices; Advantage of Serviced Components: object pooling, database connection pooling,
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.