Silverlight BeginSave Error help

Silverlight BeginSave Error help

Old forum URL:

JonM posted on Friday, April 23, 2010

I'm trying to get my first silverlight sample project off the ground using a editable list.  I've got the both the SimpleApp and Rolodex samples to work.  However they don't contain a root editable list!  Anyway.  The fetch code works great (so far).   The BeginSave is where I get the error.  In my call back I'm getting a System.Net.WebException of NotFound.  I'm stumped on this one.  Any ideas?  This makes me think it can't find my dataportal endpoint but the fetch works great!  I don't get it.


{System.Reflection.TargetInvocationException: An exception occurred during the operation, making the result invalid.  Check InnerException for exception details. ---> System.ServiceModel.CommunicationException: The remote server returned an error: NotFound. ---> System.Net.WebException: The remote server returned an error: NotFound. ---> 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)
   --- End of inner exception stack trace ---
   at System.Net.Browser.AsyncHelper.BeginOnUI(SendOrPostCallback beginMethod, Object state)
   at System.Net.Browser.BrowserHttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
   at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelAsyncRequest.CompleteGetResponse(IAsyncResult result)
   --- End of inner exception stack trace ---
   at System.ServiceModel.AsyncResult.End[TAsyncResult](IAsyncResult result)
   at System.ServiceModel.Channels.ServiceChannel.EndCall(String action, Object[] outs, IAsyncResult result)
   at System.ServiceModel.ClientBase`1.ChannelBase`1.EndInvoke(String methodName, Object[] args, IAsyncResult result)
   at Csla.WcfPortal.WcfPortalClient.WcfPortalClientChannel.EndUpdate(IAsyncResult result)
   at Csla.WcfPortal.WcfPortalClient.Csla.WcfPortal.IWcfPortal.EndUpdate(IAsyncResult result)
   at Csla.WcfPortal.WcfPortalClient.OnEndUpdate(IAsyncResult result)
   at System.ServiceModel.ClientBase`1.OnAsyncCallCompleted(IAsyncResult result)
   --- End of inner exception stack trace ---
   at System.ComponentModel.AsyncCompletedEventArgs.RaiseExceptionIfNecessary()
   at Csla.WcfPortal.UpdateCompletedEventArgs.get_Result()
   at Csla.DataPortalClient.WcfProxy`1.proxy_UpdateCompleted(Object sender, UpdateCompletedEventArgs e)}

JonM replied on Friday, April 23, 2010

Okay.  After a lot of cursing at the internet I got it.  Basically this error can happen if the WCF maxSizes are not big enough.  So increased the size in the ClientConfig file and the web.config and now it works!  My real gripe is that the WCF error does not give you any help on this one.  It gives you a NotFound exception as if the end point doesn't exist!!

RockfordLhotka replied on Tuesday, April 27, 2010

Are you using compression? Even with the limits set higher it is possible to exceed the WCF limits unless you use compression. And you want the perf gains from compression anyway, so I take it as a given that any SL app will employ compression when using the data portal.

RockfordLhotka replied on Wednesday, April 28, 2010

I was asking you - and making a general statement that any SL app beyond the simplest demo should use compression - otherwise you should expect poor perf and periodic blowouts when you exceed the max WCF limits.

There are WCF size limits that go in clientconfig also, yes.

Copyright (c) Marimer LLC