Solved

Step though WCF Code

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

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 74

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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
This video discusses moving either the default database or any database to a new volume.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

746 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

13 Experts available now in Live!

Get 1:1 Help Now