Unhandled Exception: C# RESTful Webservice
Posted
by Debby
on Stack Overflow
See other posts from Stack Overflow
or by Debby
Published on 2010-06-10T17:58:54Z
Indexed on
2010/06/10
18:02 UTC
Read the original article
Hit count: 1300
Hi,
I am trying a simple C# Restful Webservice example. I have the service running. I create a console client to test the Webservice, i get the following exception:
Unhandled Exception: System.ServiceModel.CommunicationException: Internal Server Error
Server stack trace:
at System.ServiceModel.Dispatcher.WebFaultClientMessageInspector.AfterReceiveReply(Message& reply, Object correlationState
)
at System.ServiceModel.Dispatcher.ImmutableClientRuntime.AfterReceiveReply(ProxyRpc& rpc)
at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object
[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime ope
ration)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at WebServiceClient.IService.GetData(String Data)
at TestClient.Program.Main() in C:\My Documents\Visual Studio 2008\Projects\WebServiceTesting\WebServiceClient\WebServiceC
lient\Program.cs:line 38
Does anyone know, why I am getting this unhandled exception and what can be done?
© Stack Overflow or respective owner