Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / June 2007

Tip: Looking for answers? Try searching our database.

debug web service problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
SushiSean - 27 Jun 2007 20:54 GMT
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?
Peter Bromberg [C# MVP] - 27 Jun 2007 21:08 GMT
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

> it is problem with debuging web service in the same solution.
> in vs2005 I create C# application then add to this solution site.
[quoted text clipped - 13 lines]
> I put brake point there and see appication get this text, but brake point
> doesn't work. What I missed?
SushiSean - 27 Jun 2007 22:24 GMT
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?

> 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
SushiSean - 28 Jun 2007 19:36 GMT
Any help here?

> 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
[quoted text clipped - 21 lines]
> > I put brake point there and see appication get this text, but brake point
> > doesn't work. What I missed?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.