Solved

Step though WCF Code

Posted on 2012-03-09
4
455 Views
Last Modified: 2012-03-27
Hi,

I have a WCF project. Could some one tell me how can I step though WCF service methods?

Thanks
0
Comment
Question by:r_pat72
  • 2
  • 2
4 Comments
 
LVL 75

Accepted Solution

by:
käµfm³d   👽 earned 500 total points
ID: 37704017
From a client, or on the server itself? You won't be able to step through from the client (AFAIK), but you could either run the service on the server via debug mode in Visual Studio, deploy the service to IIS (or a self-hosted service) and attach to the process from within VS, or, if you don't have VS on the server, you might try remote debugging the service.

You can put a breakpoint in the relevant part(s) of your service, and when you client makes a request to the service, if you have VS attached to the service, then your breakpoints should hit.
0
 

Author Comment

by:r_pat72
ID: 37704382
i want to debug from visual studio without client. I set the wcf Project as start up project.Right clicked on .svc file & cliked on view on browser. Attached the IE process from visual studio.
Added a break point inside a method call.

Then I called a method from the URL with querystring like this.

http://localhost:portname/demo1.svc/GetEmpDetails?empid=1213

I am expecting the breakpoint should hit when I refresh the browser, but I don't get any result with this process.

Is there anything I am doing wrong?

Thanks
0
 
LVL 75

Expert Comment

by:käµfm³d 👽
ID: 37705530
What kind of binding are you using?
0
 

Author Comment

by:r_pat72
ID: 37705612
wshttp
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

920 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

11 Experts available now in Live!

Get 1:1 Help Now