debug web service problem

G

Guest

it is problem with debuging web service in the same solution.
in vs2005 I create C# application then add to this solution site.
In site I create web service, then in application add web reference
and select "web service in this solution" - it added as "localhost".

then I call this webservice and I get response, but I CAN'T debug
web service work. Why?
By default it have code

[WebMethod]
public string HelloWorld()
{
return "Hello World!!!";
}

I put brake point there and see appication get this text, but brake point
doesn't work. What I missed?
 
G

Guest

I run this webserver and use Invoke metode to test and this brake point work.
So I don't understend is it should work in general? Can I debug webservice
which
in the same solution with app wich use it? Can I get any info how set up
project
for this?
 
G

Guest

Any help here?

Peter Bromberg said:
Try making a request to the WebService discovery page first, so it is up in
the browser. if that doesn't work you can insert a Debugger.Break statement
early in the code, or just inside the desired webmethod.
-- Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
BlogMetaFinder(BETA): http://www.blogmetafinder.com



SushiSean said:
it is problem with debuging web service in the same solution.
in vs2005 I create C# application then add to this solution site.
In site I create web service, then in application add web reference
and select "web service in this solution" - it added as "localhost".

then I call this webservice and I get response, but I CAN'T debug
web service work. Why?
By default it have code

[WebMethod]
public string HelloWorld()
{
return "Hello World!!!";
}

I put brake point there and see appication get this text, but brake point
doesn't work. What I missed?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,708
Latest member
SherleneF1

Latest Threads

Top