Home » C# ProgrammingRSS

There was an error reading from the pipe: The pipe has been ended. (109, 0x6d)

Hi

I am getting COM exception as "There was an error reading from the pipe: The pipe has been ended. (109, 0x6d)".

I have a WCF method to return Object[] and it is causing this error when returning the object array.

<

 

netNamedPipeBinding>

<

 

bindingname="PrivateBinding0"

 

 

closeTimeout="00:10:00"

 

 

openTimeout="00:10:00"

 

 

receiveTimeout="00:10:00"

 

 

sendTimeout="00:010:00"

 

 

transactionFlow ="false"

 

 

transferMode="Streamed"

 

 

transactionProtocol="OleTransactions"

 

 

hostNameComparisonMode="StrongWildcard"

 

 

maxBufferPoolSize="671088649"

 

 

maxBufferSize="671088649"

 

 

maxConnections="10"

 

 

maxReceivedMessageSize="671088649">

<

 

securitymode="Transport">

<

 

transportprotectionLevel="EncryptAndSign" />

</

 

security>

</

 

binding>

</

 

netNamedPipeBinding>

Please let me know, if yiou have any clue about this error.

 

Thanks,

Prabhu.

 

 

1 Answer Found

 

Answer 1

Hello,

you can't return Object or Object[]. You have to return specific data type. Another possibility is to use ServiceKnownType attribute to define set of possible objects which can be returned but this has also limitations.

Best regards,
Ladislav

 
 
 

<< Previous      Next >>


Microsoft   |   Windows   |   Visual Studio   |   Follow us on Twitter