Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
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.

Go Back   Vista Forums > Misc Newsgroups > Indigo

Vista - The server did not provide a meaningful reply; ...

 
 
Old 03-04-2006   #1 (permalink)
Kurt


 
 

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 want
to up the max message size and see if that works.

Thanks,

My System SpecsSystem Spec
Old 03-04-2006   #2 (permalink)
Marc Falesse


 
 

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 SpecsSystem Spec
 

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


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46