Can't step into web service in debugger

I have a windows forms application that calls a c# dll which calls a web service (on my local web server). I wrote the code using VS.NET 2003 and had no trouble debugging. I have recently upgraded to VS.NET 2005 and can no longer step into the web service. When I set a breakpoint in the web service and start the app, I see an icon next to the breakpoint that says no symbols have been loaded for the document.

I have added the following line to the webconfig file:

<compilation debug="true">

The configuration Manager shows all projects being built with debug on and when I look at the property pages for my web service, the asp.net debugger is checked.

Does anyone know what I am doing wrong



Answer this question

Can't step into web service in debugger

  • bitbonk

    Mine are also in the same solution. I still have not solved the problem or had any suggestions from anyone.
  • Trevor Townsend

    Kareem Shaker wrote:

    You cannot debug a webservice but you can just attach a debugger to the aspnet worker process

    Of course you can. Try doing what I suggest and you will.



  • Janet666

    I am having the same problem. The webservice and the consumer are even in the same solution. When trying to step into the webservice method, I get "No source code available for current location".

    Any ideas


  • rene schrieken

    What version is .Net on the web service Check via aspnet_regiis in the Framework version directory such as:

    C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727>aspnet_regiis -lv
    1.1.4322.0 Valid C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet_isapi.dll
    2.0.50727.0 Valid (Root) C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll


    If root is on 1.1..do the following if you have changed the web service code to be compiled under version 2, then the .Net version will need to be changed to that version for ASP.Net. It is done via aspnet_regiis -i.


  • SPWilkinson

    I did and I can! Thank you. That solved the problem!
  • TheSonny

    papadi wrote:
    Kareem Shaker wrote:

    You cannot debug a webservice but you can just attach a debugger to the aspnet worker process

    Of course you can. Try doing what I suggest and you will.

    Thank you !



  • katykitten04

    If your a exe application is the start-up project then your web service does not run under the debugger. You should make both your exe and web service start-up projects. Right click on the solution node on the solution explorer and select "Set start-up projects...". Then select "Multiple start-up projects".

  • n8 g

    Hi,

    You cannot debug a webservice but you can just attach a debugger to the aspnet worker process, try reviewing this thread and view the instructions there.

    Regards,



  • Can't step into web service in debugger