Problems with the DataProvider - Silverlight project

Problems with the DataProvider - Silverlight project

Old forum URL: forums.lhotka.net/forums/t/6497.aspx


mhnyborg posted on Monday, February 23, 2009

I get the error "Value cannot be null" a lot when I am using objectfactory with the dataprovider.

I can get the objects when calling object.getXXX that works.

I also have a problem when i bind the cancel,save,delete buttons. The save and cancel button is enabled when there has been no changes.

I am using Rolodex and the RemotePortalWithObjectFactory projects to learn from. but I have not been able to find the difference in my own code and the code in RemotePortalWithObjectFactory.

I am using  the ASP.NET development server and using the silverlight hosting website as the wcfhost to.

Hope someone can help me.

RockfordLhotka replied on Wednesday, February 25, 2009

This typically means that the name of the type or method is wrong, so the reflection code to invoke the method fails to find the type/method (resulting in a null).

I'm trying to tighten up the exception messages to be more explicit, so this should get better over next next version or two - hopefully thus helping the debugging/troubleshooting process.

Copyright (c) Marimer LLC