Can I Dubug a web Service from the client application

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 ?

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

pclarke7Author Commented:
This was caused by having Optimize code switched on whilst in debug mode. Managed to resolve by switching off Optimize Code in the build options and the cleaning and rebuilding solution

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
pclarke7Author Commented:
resolved this one myself and documented  the solution in case someone else falls into the same trap.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.