türkçe c# püf noktaları.

Friday, May 04, 2007

wcf den aldığım diğer exceptionlar.

client ı kullanırken ara verdiğimde tekrar bi işlem yaptığımda çatlıodu ona basit bir check fonksiyonu yazmakda fayda var sakın habire WCFClient cli=new WCFClient(); gibi şeyler yapmayın garip hatalar olabilio aşşağıda örnekleri.

bu arada server'dan client a Bitmap yollamanız gerekirse ve bunlar büyük olursa aşağıdaki gibi app.config dosyanıza readerQuotas maxArrayLength bölgesine büyüüük rakamlar dayıyorsunuz. velhasıl 2 veya 3 günde epey becerikli server/client naneniz olabiliyor.
<bindings>
<wsHttpBinding>
<binding name="TransactionalWS" transactionFlow="true" sendTimeout="00:05:00" maxReceivedMessageSize="2147483647">
<readerQuotas maxArrayLength="2147483647"/>
<reliableSession enabled="True" />
</binding>
</wsHttpBinding>
</bindings>

The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter http://tempuri.org/:patientInfo. The InnerException message was 'There was an error deserializing the object of type ViCentEasy.PatientInfo. The maximum array length quota (16384) has been exceeded while reading XML data. This quota may be increased by changing the MaxArrayLength property on the XmlDictionaryReaderQuotas object used when creating the XML reader. Line 1, position 709201.'. Please see InnerException for more details.


The maximum retry count has been exceeded with no response from the remote endpoint. The reliable session was faulted. This is often an indication that the remote endpoint is no longer available.

No comments: