![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
br> br> |
| |||||||
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Guest | 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) |
| Guest | 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 | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| AUTO REPLY - OUT OF OFFICE REPLY | Jennifer | Vista mail | 1 | 08-18-2008 07:59 PM |
| You will need to provide DMINISTRATOR PERMISSION TO COPY TO THIS F | Koteswararao | Vista General | 1 | 03-09-2008 05:15 PM |
| Best seller,Best service,Provide Best bot | cherrytree | Vista Games | 0 | 10-28-2007 09:33 PM |
| reply to ng post -> reply is sent to outbox and stays there | nweissma | Vista mail | 1 | 08-22-2007 07:26 PM |
| PLZ Provide more shortcut key! | Colin Barnhorst | Vista General | 1 | 08-06-2006 06:51 PM |