Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8779185
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T19:43:20+00:00 2026-06-13T19:43:20+00:00

Basically, I’ve got a pretty standard web service call, in a DLL project, running

  • 0

Basically, I’ve got a pretty standard web service call, in a DLL project, running under the built debug server.

Looks something like this

<WebInvoke(Method:="POST", BodyStyle:=WebMessageBodyStyle.Bare, UriTemplate:="")>
Public Function POSTOrder(httpPostOrder As Contract.APIOrder) As Contract.Response.Order
    ....
    Return (httpResponse)
End Function

If I RUN the project, I can send XML POST requests to it using fiddler just fine, and if I set a breakpoint in the above function, it gets hit.

Now, I’d like to set up a simple unit test for this function, so I added a test project and this test:

<TestMethod()>
Public Sub TestPostOrder()
    Dim r As String
    Dim w As New Net.WebClient

    W.Headers.Add("Content-Type", "application/xml")
    Dim x =
            <?xml version="1.0"?>
            <order_info>
                <event_id>103153</event_id>
                <id>1</id>
                .....
            </order_info>
    r = w.UploadString("http://localhost:15034/orders/?api_key={sometext}", "POST", x.ToString)
End Sub

I know, not the greatest Unit Test in the world, but that’s not the point right now.

So, When I run this test, it DOES run through and it’s successful. I can even debug the unit test, step through it, and see that the UPLOADSTRING call does succeed and return valid information.

BUT, if I set a breakpoint in the actual function being tested, it’s never hit.

I found this question

Can I debug while running a VS Unit Test?

but I tried that and no dice.

I’m guessing I don’t have something configured quite right with the unit test, and so it’s not starting the actual DLL in a context that can be debugged, but so far, I’ve turned up nothing.

Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T19:43:21+00:00Added an answer on June 13, 2026 at 7:43 pm

    Yes, you can.

    Make sure your debugger is attached to the right process (IIS or Cassini process) that’s hosting the actual service, not the Unit Test (which is only a client).

    What I would do is:

    • have a VS instance set to debug the web process
    • use the debugging instance to set any needed breakpoints
    • use another VS instance to run the test
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Basically I have a web service connected to a database, that has an insert
Basically I am trying to restart a service from a php web page. Here
Basically I have this server app I built in vc#, and for some reason
**Basically, I have the DLog command in my project, i have almost hundreds of
Basically I need to verify that a certain program is not running before installation.
Basically I need to get older version of a file in the repository without
Basically I want to check the extended permissions the user has granted my app.
Basically I want to convert a virtual path to an absolute path.
Basically, I have a UIImageView that will loop through 8 PNGs over 0.5 seconds.
basically I want to validate whether or not a text box is a certain

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.