c# - WCF Service Does Not Send HTTP Response, even though method gets invoked -


When I do I get the following error message when I try to open my WCF method using WCO Test Client:

  Probable cause of failure to implement service: Service is offline or inaccessible; Client-side configuration does not match proxy; The current proxy is invalid View the stack trace for more details. You can try starting a new proxy, restoring the default configuration, or refreshing the service. The underlying connection was closed: The connection was stopped unexpectedly. Server Stack Trace: System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply on System.ServiceModel.Channels.HttpChannelUtilities.ProcessGetResponseWebException (WebException WebException, HttpWebRequest Request, HttpAbortReason abortReason) (TimeSpan expired) on System .RequestChannel.Request (Send message ServiceModel.Channels, timed TimeSpan) (message message System.ServiceModel.Dispatcher.RequestChannelBinder.Request, timed TimeSpan) (string action System.ServiceModel.Channels.ServiceChannel.Call, Boolean oneway, ProxyOperationRuntime operation, object [] in ,, object [] exclusion timed TimeSpan) System.ServiceModel.Channel Sistmkrentaim in: [0] exception rethrown in System.ServiceModel.Channels.ServiceChannelProxy.InvokeService (IMethodCallMessage methodCall, ProxyOperationRuntime operation) (iMessage messages) on s.ServiceChannelProxy.Invoke. Remoting. Proxy Real proxy. Hndl Ritrn message (Aimsej Riconj, Aimsej Retmji) Runtime.Remoting.Proxies.RealProxy.PrivateInvoke (MessageData & amp; msgData, Int32 type system) MyApi.GetStuff (String [] stuff) on IMyApi.GetStuff (String [] items) Inner exception: The underlying connection was discontinued: the connection stopped unexpectedly. On System.Net.HttpWebRequest.GetResponse (on System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply) (timed TimeSpan)   

I have my method under test , So I know the exception method is not being thrown from inside. I have an interceptor Interceptor: attribute, Aiopreshn Brevriyr, Aipiammtiai Inspector with AfterCall method has been reported that the interceptor was reached. This exception message, unit testing, and very clear interceptor that an exception is being thrown after any method, try the service (but failed) is used to send feedback.

I have been using Visual Studio's built-in support for WCF, I did nothing to apply on IIS. Other methods in the API work just fine - not just one. What's going wrong? In

Edit: After some debugging, I found out that the following code reproduce my problem [ServiceContract] TestService {public class [Opreshncontrkt] public MyClass DoWork () {new MyClass () } {Str = "hello"}; }} [DataContract] Public Class Mayclass {[Database] Public String St {get; Set; } [Datamember] public string strings {get {return Str + "again!"; }}}

How does the addition of straps throws an exception?

This is not supported in that as only the attribute data of the members is still a The secret is that why the connection was cut. Generally WCF returns an error document.

You can add a setter to throw a NotSupportedException .

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -