![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
| |
| | #1 (permalink) |
| | The server did not provide a meaningful reply; ... I was working on a little pet project of mine I thought would be a good oportunity to learn more about WCF and what not, made good progress for awhile but when I imported more test data I began to get the following error on the client: System.ServiceModel.CommunicationException was unhandled Message="The server did not provide a meaningful reply; this might be caused by a contract mismatch, a premature session shutdown or an internal server error." Source="mscorlib" StackTrace: Server stack trace: at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout) at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs) at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation) 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 IAccountService.GetTransactions(Int32 accountId) .... At first I assumed it was my data and started cleaning it divide and conquer style deleted first half records problem went away reimported deleted second half and problem went away, then I got confused and started and added this to the end of my service: list.Clear(); for (int i = 0; i < 154; ++i) { list.Add(new Transaction()); } System.IO.StringWriter sw = new System.IO.StringWriter(); new XmlFormatter().Serialize(new System.Xml.XmlTextWriter(sw), list); string result = sw.ToString(); // breakpoint return list; if 153 it works fine 154 it errors, in either case the "result" from xmlformatter is well formed, and then it occured to me the message size might be too large and thus gets truncated... that would make sence I guess, so what do I do to fix it? I didn't see anything in the web.config but I assume there's a setting somewhere I can change... a binary binding might be a better for this but I'm not ready to get all advanced just yet I just wantto up the max message size and see if that works. Thanks, |
My System Specs![]() |
| | #2 (permalink) |
| | Re: The server did not provide a meaningful reply; ... Kurt, To see what the exception is, you may use : [ServiceBehavior(ReturnUnknownExceptionsAsFaults = true)] Kurt a écrit : > I was working on a little pet project of mine I thought would be a good > oportunity to learn more about WCF and what not, made good progress for > awhile but when I imported more test data I began to get the following error > on the client: > > System.ServiceModel.CommunicationException was unhandled > Message="The server did not provide a meaningful reply; this might be > caused by a contract mismatch, a premature session shutdown or an internal > server error." > Source="mscorlib" > StackTrace: > Server stack trace: > at System.ServiceModel.Channels.ServiceChannel.Call(String action, > Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, > TimeSpan timeout) > at System.ServiceModel.Channels.ServiceChannel.Call(String action, > Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs) > at > System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation) > 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 IAccountService.GetTransactions(Int32 accountId) > ... > > At first I assumed it was my data and started cleaning it divide and conquer > style deleted first half records problem went away reimported deleted second > half and problem went away, then I got confused and started and added this to > the end of my service: > > list.Clear(); > for (int i = 0; i < 154; ++i) > { > list.Add(new Transaction()); > } > > System.IO.StringWriter sw = new System.IO.StringWriter(); > new XmlFormatter().Serialize(new System.Xml.XmlTextWriter(sw), list); > string result = sw.ToString(); // breakpoint > > return list; > > if 153 it works fine 154 it errors, in either case the "result" from > xmlformatter is well formed, and then it occured to me the message size might > be too large and thus gets truncated... that would make sence I guess, so > what do I do to fix it? I didn't see anything in the web.config but I assume > there's a setting somewhere I can change... a binary binding might be a > better for this but I'm not ready to get all advanced just yet I just want> to up the max message size and see if that works. > > Thanks, |
My System Specs![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Hit Reply and mail sends without reply | Live Mail | |||
| How setup server delivery confirmation reply? | Vista mail | |||
| AUTO REPLY - OUT OF OFFICE REPLY | Vista mail | |||
| reply to ng post -> reply is sent to outbox and stays there | Vista mail | |||
| PLZ Provide more shortcut key! | Vista General | |||