Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > Cannot singlestep into webservice to debug it

Reply
Thread Tools

Cannot singlestep into webservice to debug it

 
 
Tore
Guest
Posts: n/a
 
      01-10-2006
I have a windows client communicating with a webservice (distributed
application). I use C# in vs 2005

The webservice contains a number of web methods. I need to set a breakpoint
in the windows client and then single step into the webservice and web
methods. This works fine for 3 out of 4 web methods in the same webservice.
For the last web method it is impossible to single-step from the windows
client into the web method. The single-steps remain within the windows
client, so the web method cannot be properly debugged.

I wonder how I can resolve this? I have tried to remove the web method and
then re-insert it, change the name etc, but without any success.

My project was converted from vs 2003 a couple of days ago. May be there is
a problem with the conversion. Except for the details that need to debugged
everything works fine.

Regards

Tore
 
Reply With Quote
 
 
 
 
Steven Cheng[MSFT]
Guest
Posts: n/a
 
      01-11-2006
Hi Tore,

Welcome.
As for debugging client winform app together with ASP.NET webservice
application, it should be a bit different from debugging normal client app+
class library project because for webservcie, the client application does
not actuall load webservice's serverside assembly(code) , client app just
send http SOAP message to webservice. So if you want debugging in code
with both application together, we need to debug the webservice application
and set the start up option to the winform app's exe file. Also, we need to
add them into the same solution...

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)





--------------------
| Thread-Topic: Cannot singlestep into webservice to debug it
| thread-index: AcYVy4E6RtbNzpNiQKOI1JZpvUwdyg==
| X-WBNR-Posting-Host: 85.166.241.18
| From: "=?Utf-8?B?VG9yZQ==?=" <>
| Subject: Cannot singlestep into webservice to debug it
| Date: Tue, 10 Jan 2006 01:52:02 -0800
| Lines: 20
| Message-ID: <2ABA3FAF-2D80-4476-89DB->
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.dotnet.framework.aspnet.webservic es
| NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSF TNGXA03.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet.webservic es:31297
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webservic es
|
| I have a windows client communicating with a webservice (distributed
| application). I use C# in vs 2005
|
| The webservice contains a number of web methods. I need to set a
breakpoint
| in the windows client and then single step into the webservice and web
| methods. This works fine for 3 out of 4 web methods in the same
webservice.
| For the last web method it is impossible to single-step from the windows
| client into the web method. The single-steps remain within the windows
| client, so the web method cannot be properly debugged.
|
| I wonder how I can resolve this? I have tried to remove the web method
and
| then re-insert it, change the name etc, but without any success.
|
| My project was converted from vs 2003 a couple of days ago. May be there
is
| a problem with the conversion. Except for the details that need to
debugged
| everything works fine.
|
| Regards
|
| Tore
|

 
Reply With Quote
 
 
 
 
Tore
Guest
Posts: n/a
 
      01-11-2006
Thanks, but I am still confused. How is it posiible that single-stepping from
the cilent into the webservice is possible for 3 out of 4 web methods? The
4th simply will not work. Has it something to do with the way I have created
the web method? Can I change anything so that single stepping wil work even
for the last web method?

I am still a novice. Can someone point me to good article on debugging of a
distributed application with webServices?

Regards

Tore
 
Reply With Quote
 
Steven Cheng[MSFT]
Guest
Posts: n/a
 
      01-12-2006
Hi Tore,

That's a bit strange. Did you find anything different on that particular
webservice from others? Anyway, if you're debugging the webservice process,
all of their code should be hitable in source editor......

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)





--------------------
| Thread-Topic: Cannot singlestep into webservice to debug it
| thread-index: AcYWgxIUkt9R2wU3TkOCXxO2IasdFg==
| X-WBNR-Posting-Host: 80.213.101.3
| From: "=?Utf-8?B?VG9yZQ==?=" <>
| References: <2ABA3FAF-2D80-4476-89DB->
<>
| Subject: RE: Cannot singlestep into webservice to debug it
| Date: Tue, 10 Jan 2006 23:46:02 -0800
| Lines: 12
| Message-ID: <F6622647-32BE-4F50-B045->
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.dotnet.framework.aspnet.webservic es
| NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSF TNGXA03.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet.webservic es:31315
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webservic es
|
| Thanks, but I am still confused. How is it posiible that single-stepping
from
| the cilent into the webservice is possible for 3 out of 4 web methods?
The
| 4th simply will not work. Has it something to do with the way I have
created
| the web method? Can I change anything so that single stepping wil work
even
| for the last web method?
|
| I am still a novice. Can someone point me to good article on debugging of
a
| distributed application with webServices?
|
| Regards
|
| Tore
|

 
Reply With Quote
 
Tore
Guest
Posts: n/a
 
      01-12-2006
There is nothing special with the web method that will not accept
singlestepping. It contains straight forward update methods for sql
dataAdapters and returns a dataset to windows client. I suspect this has
something to do with the conversion from vs2003 to vs2005 I did some days
ago, and that something "happened" to the project files. I saw a post
somewhere that deleting some temp files could help such a problem. I am not
so familiar with vs2005 file structure that I have dared to do this.

Regards

Tore

 
Reply With Quote
 
Steven Cheng[MSFT]
Guest
Posts: n/a
 
      01-16-2006
Thanks for your response Tore,

It would be hard to say since some such problem is caused by some internal
states of the project file or IDE's cache got corrupted. Anyway, if it
works well for new created webservice and debugging them, that'll ensure
the IDE dosn't have anything configured incorretly...

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


--------------------
| Thread-Topic: Cannot singlestep into webservice to debug it
| thread-index: AcYXV1IFHDTkMpWQSOK7p9gOmGLOpQ==
| X-WBNR-Posting-Host: 80.213.101.3
| From: "=?Utf-8?B?VG9yZQ==?=" <>
| References: <2ABA3FAF-2D80-4476-89DB->
<>
<F6622647-32BE-4F50-B045->
<>
| Subject: RE: Cannot singlestep into webservice to debug it
| Date: Thu, 12 Jan 2006 01:05:23 -0800
| Lines: 12
| Message-ID: <48EFD666-5F43-4AA6-95CA->
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.dotnet.framework.aspnet.webservic es
| NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA03.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet.webservic es:31344
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webservic es
|
| There is nothing special with the web method that will not accept
| singlestepping. It contains straight forward update methods for sql
| dataAdapters and returns a dataset to windows client. I suspect this has
| something to do with the conversion from vs2003 to vs2005 I did some days
| ago, and that something "happened" to the project files. I saw a post
| somewhere that deleting some temp files could help such a problem. I am
not
| so familiar with vs2005 file structure that I have dared to do this.
|
| Regards
|
| Tore
|
|

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot debug web application "Cannot create/shadow copy ..." Waldy ASP .Net 4 08-03-2007 01:36 PM
debug="false" in web.config and <%@ debug="true" ...%> in aspx file => true or false? André ASP .Net 3 08-28-2006 12:02 PM
Config Mgr Debug/Release and Web.config Compilation debug=true RonL ASP .Net 0 04-08-2006 03:50 PM
Debug (DLL MFC) -> Debug (Static MFC) ringos75 C++ 0 04-14-2005 01:50 PM
[Howto] Compiling debug Python extensions for non-debug Python Mike C. Fletcher Python 3 10-12-2003 09:37 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57