Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

WCF Error calling service method

Posted on 2009-04-03
6
Medium Priority
?
222 Views
Last Modified: 2013-11-08
hi,

I get the following error when calling method from my client (client.Authenticate)

"The communication object, System.ServiceModel.Channels.ServiceChannel, cannot be used for communication because it is in the Faulted state."

Note that the WCF service is hosted by a vendor. I have generated the necessary files using svcutil

see code below


using (MailingListClient client = new MailingListClient("WSHttpBinding_IMailingList"))
                {
                    client.Authenticate(accountId, password);     
}

Open in new window

0
Comment
Question by:acadenilla
[X]
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
  • 3
  • 3
6 Comments
 
LVL 22

Accepted Solution

by:
p_davis earned 1500 total points
ID: 24060301
something on the service side failed and closed the serviceChannel -- you have to debug the service to find out what happened.
0
 

Author Comment

by:acadenilla
ID: 24060482
davis,

You think its in the service side? Unfortunately as stated the service is by a third party vendor.

Though i was able to get in contact with my vendor and they have received my code.

Is there anything i can do with my end to troubleshoot some more?

Thanks

Allan
0
 
LVL 22

Expert Comment

by:p_davis
ID: 24060567
unfortunately, it all depends on your error logging framework. i imagine if it is implemented it is logged where the service is hosted. but maybe you can call your vendor and see if they have any event logs that could point to the issue. if it is service side and you don't have control over it then there isn't much you can do from the client side.

in my mind it has to be service side related. either you have sent a parameter that doesn't contain the information needed (ie something is null wouldn't it shouldn't be) or the service has a defect in it. otherwise you would be receiving the error on the client side, and not from the service model. and this could be in the method you posted or a method that uses the service before this method.

do you utilize the sendorpostcallback framework?
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

Author Comment

by:acadenilla
ID: 24060676
No, i did not utilize the sendorpostcallback framework.

I agree with you unless i am sending them bad parameters it must be on there side.

Best thing to do right now is wait for there response


0
 
LVL 22

Expert Comment

by:p_davis
ID: 24060820
good luck. i know how frustrating it is with service issues -- and we control ours. i can't imagine someone else having that control.
0
 

Author Closing Comment

by:acadenilla
ID: 31566253
I error was from the service side, which comes from a third party. After consulting with them they were able to figure out the issue
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…

660 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