We help IT Professionals succeed at work.
Get Started

Can I Dubug a web Service from the client application

pclarke7 asked
Last Modified: 2015-03-08
I have just written my first IIS hosted service. From WCF Test Client I can successfully run 2 services.
•      TestService
•      Login

TestService       returns “hello Pat” (just a simple test that service is working)
Login              returns a UserMaster object comprised of many values (Name, address phone etc..)

When I call these same two services with the same parameters through my window forms Client application ,the 1st service TestService return the correct value but the 2nd service returns just the initialized UserMaster object (ie all values set to ‘ ‘ via the constructor).

DCRulesClientSide.TransactionClient client = new DCRulesClientSide.TransactionClient();
            DCRulesClientSide.UserMaster MyUserDtls = client.Login(“pclarkeirl”);
            string test = client.GetData("Pat");

So the service is working , but obviously failing somewhere. I have tried to debugging the client and then step into the server code but I get “RealProxy.cs not found”.

Can some please suggest the best way to determine what is happing differently in the IIS hosted service to when it is run from WCF Test Client ? Can I debug the server application from the client and if so could you please give a detailed step by step description of how to do this ?

Watch Question
This problem has been solved!
Unlock 1 Answer and 2 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE