473,544 Members | 1,833 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Debugging a WebService

Is there a secret trick to debugging a Web service?
I compile my web service and test app in debug mode.
The webservice has <compilation defaultLanguage ="vb" debug="true" /> in
web.config.
I set breakpoints in my web service.
I try to step into my web services with F11 from my test app.
My webservices executes, but I never reach my breakpoint and my webservice
never executes in debug mode.

Nov 21 '05 #1
3 5015
Arne wrote:
Is there a secret trick to debugging a Web service?
I compile my web service and test app in debug mode.
The webservice has <compilation defaultLanguage ="vb" debug="true" />
in
web.config.
I set breakpoints in my web service.
I try to step into my web services with F11 from my test app.
My webservices executes, but I never reach my breakpoint and my
webservice
never executes in debug mode.


The problem is you probably set your test app as the startup project which means the debugger will attach to that process, however it will not automatically attach to ASP.NET's process. You need to explicitly attach to the process by going to Debug -> Processes -> Find and double click aspnet_wp.exe -> Make sure Common Language Runtime is checked off and hit ok.

Now you're debugging both processes and should get the exact debugging experience you're expecting.

HTH,
Drew
Nov 21 '05 #2
Is it possible to automate this so we don't need to attach every time we
start a new debug session ?
"Drew Marsh" <dr****@hotmail .no.spamming.co m> wrote in message
news:eR******** ******@TK2MSFTN GP15.phx.gbl...
Arne wrote:
Is there a secret trick to debugging a Web service?
I compile my web service and test app in debug mode.
The webservice has <compilation defaultLanguage ="vb" debug="true" />
in
web.config.
I set breakpoints in my web service.
I try to step into my web services with F11 from my test app.
My webservices executes, but I never reach my breakpoint and my
webservice
never executes in debug mode.


The problem is you probably set your test app as the startup project which
means the debugger will attach to that process, however it will not
automatically attach to ASP.NET's process. You need to explicitly attach
to the process by going to Debug -> Processes -> Find and double click
aspnet_wp.exe -> Make sure Common Language Runtime is checked off and hit
ok.

Now you're debugging both processes and should get the exact debugging
experience you're expecting.

HTH,
Drew


Nov 21 '05 #3
Magne Ryholt wrote:
Is it possible to automate this so we don't need to attach every time
we
start a new debug session ?


Nothing straight forward that I know of, but you might be able to do it with
a Macro.

-Dre

Nov 21 '05 #4

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

Similar topics

0
305
by: Jon Vaughan | last post by:
Hey all, First post, so i'm hope im in the right place : Basically I have a web service and an interface as the consumer in two seperate projects running on the same machine. There is a single webservice with multiple functions. The functions that are retriving data such as GetDataX(Param) I can step into with the debugger fine. But the...
2
1062
by: Chris Fink | last post by:
Is it possible to place a breakpoint in a webservice that when the client attempts to consume it, I can step through the webservice on the server using a debugger? The above is a question when doing development...but when the webservice is hosted in test (without the VS.NET IDE), how would I accomplish this? I have tried to setup a remote...
0
2445
by: SBS Prem und SQL 2000 mit WSS | last post by:
hi ng, It's possible saying me somebody, how can I debug a webservice on a server. I develop the service on the client installing the VS.NET. On the server are installed the remote debugger components. I have add a new project in the solution and I can created on the remote server. The simple thing works fine, but then I want debug the...
0
1067
by: S. Berwanger | last post by:
Hallo, I'm trouble debugging a Webservice application on the WinCE 4.1 emulator from VS 2003. The Webservice gives back Datasets from a SQL Database. When I'm starting the application for the first time everything works fine. Later I can exist the application without a problems and returns to VS as expected. But the second start hangs...
0
961
by: cam66 | last post by:
Hi! I'm making my first webservice in vs2005 and would like to use remote debugging. I've developed the webservice at a server(a) in our local nettwork that does not have IIS. Therefore I've used another server(b) in the same nettwork to run the webservice. I've tried to use the "Attach to process..."-function from the
3
1685
by: Sathyaish | last post by:
How do you debug a web service in Visual Studio .NET 2003? To give you some background, I have been programming for some over 8 years now and know how to debug VB, VC++ apps in Visual Studio 6.0 and also know how to debug WinForms apps, Console Apps and ASP.NET apps in Visual Studio ..NET 2003. It occurs that this is the first time I am...
0
1217
by: Eric bouxirot | last post by:
hi, i have some trouble to debug my webservice i have a server with SBS2003 (with domain controler) with IIS 6 my dev machine is XP Pro on WorkGroup with VS2005 if i run webservice and client application on my dev computer, all work fine...
0
965
by: Eric bouxirot | last post by:
hi, i have some trouble to debug my webservice i have a server with SBS2003 (with domain controler) with IIS 6 my dev machine is XP Pro on WorkGroup with VS2005 if i run webservice and client application on my dev computer, all work fine...
0
2404
by: Tim Bücker | last post by:
Hello everyone, i?ve got a very insistent problem trying to get remote debugging running. Really hope that someone has any ideas about this topic. Although the MSDN and some popular search engines provide a lot of material for this kind of problem they couldn?t solve mine... I am using VS 2005 to create a new webservice and in the same...
0
7413
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7356
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7752
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7358
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7697
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5894
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
4902
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3397
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
650
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.