Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Faulted state
Message
From
02/09/2008 17:01:38
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
General information
Forum:
ASP.NET
Category:
Windows Communication Foundation (WCF)
Title:
Environment versions
Environment:
C# 3.0
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01344276
Message ID:
01344312
Views:
10
>>Hi All,
>>
>>I am having a difficult time resolving a WCF service error exception of "ServiceChannel, cannot be used for communication because it is in a Faulted state". I have googled this error with lots of hits and for one learned the service does not return the details of the actual error.
>>
>>This leads me to believe it must be with the WCF service and not my client application that uses it. At this point all I seem to be able to do is experiment trying to find something which has an affect. If anyone has any ideas, I would really love to hear them.
>>
>>PS: I posted a similar question earlier but never have seen it show up so if it gets posted twice, I appologize.
>>Tim
>
>What protocol? Is it establishing a connection then failing, or (I'm assuming) it's failing with that error as soon as you try to open the connection?
>
>You can enable all the debugging and use their tracing tool to help debug this. In Visual Studio select Tools > WCF Service Configuration Editor and open the server .config file, then go to Diagnostics and click on the link to enable tracing and the link to enable message logging. Save it and do the same with the client (going from memory here, hopefully this at least gets you in the ballpark).
>
>Once tracing is enabled fire up the server and attempt to connect. If you don't already have it, you'll also want the Service Trace Viewer Tool which is included with the Windows SDK (\Program Files\Microsoft SDKs\Windows\v6.0A\bin\SvcTraceViewer.exe). You can fire it up and load the log files. It's actually pretty easy to poke around from there (although there is a ton of information displayed, hopefully you've got a nice high resolution monitor). If you don't have the SDK (or don't want to install it because it's huge), let me know - I can e-mail the file to you if you want.

Hi Paul,
I am using http protocol for transport as my service is hosted on IIS with a hosting company. It is also a Mere Mortals WCF Data Access Service so I have written almost NO code for this service. It doesn't work on the hosted server but I get the same error when I run it in development server and try to access it. I have the Service Trace Viewer tool, but didn't realize it. I have made the changes and run the service, received the error and now looking at the trace file in the viewer. I can see two exceptions as warning but not yet figured out how to translate this. Thanks for your help. Any clues as to how to diagnose this info?
Thanks
Tim
Timothy Bryan
Previous
Reply
Map
View

Click here to load this message in the networking platform