PC Review


Reply
Thread Tools Rate Thread

Debugging a WebService

 
 
Erica
Guest
Posts: n/a
 
      13th Feb 2007
Hello,
I want to set a break point in the web method that I am trying to debug and
then I want to access the web method via my cell phone and have the break
point activate so I can see what is going on. How do I do this?

PS: I am using "Microsoft Visual Studio 2005 (C#)" Professional Edition.

Thanks


 
Reply With Quote
 
 
 
 
Marc Gravell
Guest
Posts: n/a
 
      13th Feb 2007
You can debug cross-host calls using IIS; setup the site / virtual in
IIS using the project root as the directory home (i.e. so that your
pages work in IIS like normal). Note the root uri to your IIS project
(e.g. "browse" in IIS and cut/paste the folder part (exclusing the
page).
In VS, use the properties page to set a custom server ("Start Options"
-> "Server"; "Use cutom server" & "Base URL", and set the uri you
noted (i.e. the IIS uri to the project root). Also set "Start action"
to "Don't open a page...".

Now set some breakpoints and hit play.

What *should* happen is that VS will compile the app, and attach the
debugger to the IIS process. Your phone should be able to call into
IIS as normal, but it should get intercepted and hit the break-points.

Marc

 
Reply With Quote
 
Laurent Bugnion [MVP]
Guest
Posts: n/a
 
      20th Feb 2007
Hi,

Marc Gravell wrote:
> You can debug cross-host calls using IIS; setup the site / virtual in
> IIS using the project root as the directory home (i.e. so that your
> pages work in IIS like normal). Note the root uri to your IIS project
> (e.g. "browse" in IIS and cut/paste the folder part (exclusing the
> page).
> In VS, use the properties page to set a custom server ("Start Options"
> -> "Server"; "Use cutom server" & "Base URL", and set the uri you
> noted (i.e. the IIS uri to the project root). Also set "Start action"
> to "Don't open a page...".
>
> Now set some breakpoints and hit play.
>
> What *should* happen is that VS will compile the app, and attach the
> debugger to the IIS process. Your phone should be able to call into
> IIS as normal, but it should get intercepted and hit the break-points.
>
> Marc


Alternatively, you can simply attach the VS debugger to the ASPNET
process using the "Debug / Attach to process" menu. This is usually
faster than starting the service in debug mode.

Greetings,
Laurent
--
Laurent Bugnion [MVP ASP.NET]
Software engineering, Blog: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
debugging an application with a webservice Seth Williams Microsoft ASP .NET 1 27th Jun 2008 05:12 AM
Help with debugging a hang issue in ASP.NET 1.1 webservice chen Microsoft ASP .NET 0 18th Jan 2007 11:43 PM
pb debugging webservice Eric bouxirot Microsoft Dot NET 0 28th Sep 2006 08:22 PM
Operation Time-Out when debugging WebService Sharon Microsoft C# .NET 0 4th Nov 2005 07:55 AM
Debugging WebService from SmartDeviceApplication problem Ron Lemire Microsoft Dot NET Compact Framework 2 29th Oct 2003 05:25 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:50 PM.