tags:

views:

12

answers:

1

iam working in an silverlight application witha datgrid displaying the records as per the value of a text box

when the records exceeds 3000 it displays an error as below and it works fine when the rcord count is below 3000 ? how to overcome this exception or to handle this

        base    {System.Net.WebException: The remote server returned an error: NotFound.
   at System.Net.Browser.BrowserHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult)
   at System.Net.Browser.BrowserHttpWebRequest.<>c__DisplayClass5.<EndGetResponse>b__4(Object sendState)
   at System.Net.Browser.AsyncHelper.<>c__DisplayClass2.<BeginOnUI>b__0(Object sendState)}  System.SystemException {System.Net.WebException}
+2  A: 

You are probably hitting the MaxReceivedMessageSize or MaxItemsInObjectGraph limits defined respectively in the binding and the behavior.

You need to update both configurations with these parameters set to a sufficiently high value (Int32.MaxValue)

Johann Blais
yeah ? how to overcome this
subash
MaxReceivedMessageSize: http://msdn.microsoft.com/fr-fr/library/system.servicemodel.basichttpbinding.maxreceivedmessagesize.aspx
Johann Blais
MaxItemsInObjectGraph: http://msdn.microsoft.com/en-us/library/system.runtime.serialization.datacontractserializer.maxitemsinobjectgraph.aspx
Johann Blais