How to debug a webservice ? VB.Net

Posted on 2009-12-22
Last Modified: 2012-05-08

I am working on Multi Layer VB.Net project.

I need to debug a Webservice Project which is written on VB.Net.

I have the source code or complete code of Webservice Project.

I am using Webservice as my Reference in my Main Project.

I need to debug it..!

How to do ..!

Question by:chokka
    LVL 20

    Expert Comment

    R u not able to place a breakpoint in the webservice and run the application in debug mode?

    You might also try

    in Menu, Debug --> Attach Process --> w3p. You should be able to debug it

    Author Comment

    i am not able to see w3p

    I am working VS 2005
    LVL 5

    Expert Comment

    Run the webservice under debugger and set break-points.
    Execute a client application using that service (just the exe or the webbrowser, not from inside VS)

    Sounds simple, but may be I missed the points.

    Author Comment

    Run Webservice under Debugger

    Do i need to open the Webservice in a Seperate VS 2005 Project and run it ?
    I already kept Break Points.

    Execute the client App

    I have 4 layer project. In that one layer is this Webservice Project
    Its a Windows Application or Smart client Application. we are using Webservice for Stand Alone Application.

    When i am able to debug 3 layers, i am not able to debug the 4th layer - Webservice,
    Since i have hosted the Webservice in local host and its keep getting called from dll's ( Web Reference ).

    LVL 5

    Accepted Solution

    Depends what you try to do.
    If you only want to step through your web service, this is the only thing that must run under the debugger.

    All the other stuff can be run from out-side visual studio (just run the binary of the other layers produced by a previous build)

    Author Comment

    ok, how to run the webservice under debugger ..

    wat setting, i need to follow ...
    LVL 5

    Expert Comment

    In VS, solution explorer, set the webservice as the Startup-project. Hit "debug" (or F5).

    Author Closing Comment


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
    Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now