Answered by:
WCF service methods can't be executed

Question
-
User1382949179 posted
I have a the most bizarre problem. I have a WCF service that works in my Dev enviroment but not in my QA environement. Well, it actually does work in QA for another app but mine doesn't and I'm not getting any errors logged anywhere. I have the same service configs in my web.config that the other app does and I even installed my app on the server that hosts the app that's working. I was getting the following error:
The communication object, System.ServiceModel.ChannelFactory`1[T], cannot be used for communication because it is in the Faulted state.
but after reading some posts about not putting the WCF client in a using statement I'm no longer getting any errors logged. The IIS logs on the server hosting the service show no requests being made to the service. This makes sense since that error is with the client but the client is not actually logging any errors now. I have WCF tracing turned on and still nothing shows on the client or the server. I"m pretty baffled as I've been googling for three days and tried so many things I can't even count them. Nothing seems to work (except the other app, and yes I've tried using SoapUI from the web server to see if I can access the service but with similar failed results).
Any, and I mean ANY, help will be truely appreciated.
Friday, September 13, 2013 10:15 PM
Answers
-
User-488622176 posted
This error is normally caused when the server code failed (and set on the client). Try to similate the error in DEV, using the same data as sent in QA. Use WCF tracing to trace the data sent to the service.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Monday, September 16, 2013 10:09 AM -
User-1623675128 posted
you may use the fiddler and see what exactly the rwquest that is being sent to server (you can confirm if at all server call has been made) so that you can see where the problem lies like with server/client.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Monday, September 16, 2013 11:54 PM -
User-1662538993 posted
Can you check your application pool and try to restart the iis and then try?
You can ask your network admin for permission for hosting the service and accessing from out side.
Other than which protocol you are trying to use. If you are using net.tcp then you have to enable the services from the services in order to net.tcp to work.
I am sure you have checked the below links but if you havent then please check the below links -
http://thorarin.net/blog/post/2010/05/30/Indisposable-WCF-clients.aspx
http://stackoverflow.com/questions/7585463/cant-call-my-service-method
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Tuesday, September 17, 2013 5:24 PM
All replies
-
User-488622176 posted
This error is normally caused when the server code failed (and set on the client). Try to similate the error in DEV, using the same data as sent in QA. Use WCF tracing to trace the data sent to the service.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Monday, September 16, 2013 10:09 AM -
User-1623675128 posted
you may use the fiddler and see what exactly the rwquest that is being sent to server (you can confirm if at all server call has been made) so that you can see where the problem lies like with server/client.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Monday, September 16, 2013 11:54 PM -
User-1662538993 posted
Can you check your application pool and try to restart the iis and then try?
You can ask your network admin for permission for hosting the service and accessing from out side.
Other than which protocol you are trying to use. If you are using net.tcp then you have to enable the services from the services in order to net.tcp to work.
I am sure you have checked the below links but if you havent then please check the below links -
http://thorarin.net/blog/post/2010/05/30/Indisposable-WCF-clients.aspx
http://stackoverflow.com/questions/7585463/cant-call-my-service-method
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Tuesday, September 17, 2013 5:24 PM