Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Step though WCF Code

Posted on 2012-03-09
4
458 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

829 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