Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

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.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Indigo

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

Update your Vista Drivers Update Your Drivers Now!!
 
 
Thread Tools Display Modes
Old 03-04-2006   #1 (permalink)
Kurt
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 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
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 SpecsSystem Spec
 
Update your Vista Drivers Update Your Drivers Now!!

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


Vistax64.com 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 2005-2008

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 47 48 49 50 51