cslalight Rolodex exception

cslalight Rolodex exception

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


andy posted on Friday, July 17, 2009

I am using CSLA framework for my internal application and have a lot of success with it.
Silverlight 3 looks very sexy with the built-in features for biz app.  I am interested using cslalight for a real LOB app.  Any pit-fall/gotcha that I should be aware of?
I tried out the Rolodex sample app and ran into problem when loading CompanyEditor user control

   at MS.Internal.XcpImports.CheckHResult(UInt32 hr)
   at MS.Internal.XcpImports.Collection_AddValue[T](PresentationFrameworkCollection`1 collection, CValue value)
   at MS.Internal.XcpImports.Collection_AddDependencyObject[T](PresentationFrameworkCollection`1 collection, DependencyObject value)
   at System.Windows.PresentationFrameworkCollection`1.AddDependencyObject(DependencyObject value)
   at System.Windows.Controls.UIElementCollection.AddInternal(UIElement value)
   at System.Windows.PresentationFrameworkCollection`1.Add(T value)
   at Rolodex.Page.ShowControl(UserControl control)
   at Rolodex.Page.<>c__DisplayClass4.<list_CompanySelected>b__3(Object o1, EventArgs e1)
   at Rolodex.CompanyEditor.OnDataLoaded()
   at Rolodex.CompanyEditor.CslaDataProvider_DataChanged(Object sender, EventArgs e)


I am using the latest version(3.7)
Any suggestion how to resolve the err exception?

RockfordLhotka replied on Monday, July 20, 2009

I haven't run through all the samples to update them to SL 3. And probably won't for some time - there are a lot of samples, and I usually fix them up if-and-when I decided to use any given sample.

Sergey wrote that sample, and may have some idea what's going on - that exception isn't one I've encountered in other samples so far.

andy replied on Monday, July 20, 2009

Rocky, just want to say thank you for your support and dedication to this awsome framework.  I want to get into silverlight 3 space and .net RIA service looks very promising but still have a long way to go.  The only problem with it is too tightly couple with  E.F and SQL server for me to jump into it for now.  Just curious and love to hear from people exposed to cslalight and their experiences with their "killer" apps.

Andy 

RockfordLhotka replied on Monday, July 20, 2009

I think RIA Services will mature into something very interesting. I think they have a long way to go before they catch up to where CSLA .NET is today, but given a few more years they’ll probably get there.

 

You should know that RIA Services can consume more than just EF as a data source though. They have something like the data portal (in a way) that abstracts where the data comes from, and it is possible to consume data from virtually any data source as long as you write the adapter code (conceptually much like writing DataPortal_XYZ methods).

 

Rocky

 

andy replied on Thursday, July 23, 2009

Rocky,
 
I tried out the silverlight Inventory sample and got the err below when clicked on "Products"/"Customers"/"Warehouses"
 
DataPortal.Fetch failed(Factory type or assembly could not be loaded(InvDal.ProductList,InvDal))
 
Any clue how to fix it?
 
Thank you for your time.
 
Andy

andy replied on Thursday, July 23, 2009

Rocky,
 
I tried out the silverlight Inventory sample and got the err below when click on "Products"/"Customers"/"Warehouses"
 
DataPortal.Fetch failed(Factory type or assembly could not be loaded(InvDal.ProductList,InvDal))
 
Any clue how to fix it?
 
Thank you for your time.
 
Andy


From: Rockford Lhotka [mailto:cslanet@lhotka.net]
Sent: Monday, July 20, 2009 11:42 AM
To: Andy Diep - usa itbp
Subject: RE: [CSLA .NET] cslalight Rolodex exception

I think RIA Services will mature into something very interesting. I think they have a long way to go before they catch up to where CSLA .NET is today, but given a few more years they’ll probably get there.

 

You should know that RIA Services can consume more than just EF as a data source though. They have something like the data portal (in a way) that abstracts where the data comes from, and it is possible to consume data from virtually any data source as long as you write the adapter code (conceptually much like writing DataPortal_XYZ methods).

 

Rocky

 




RockfordLhotka replied on Thursday, July 23, 2009

You should try doing a rebuild of the solution.

 

On my machine (and I thought it was just me) I have discovered that after installing the SL3 SDK Visual Studio no longer seems to automatically rebuild all the projects when it should. In other words, with SL2 I was usually able to just hit F5 and the right stuff would get built, but with SL3 I usually have to explicitly do a rebuild of the solution before I can hit F5.

 

Rocky

andy replied on Monday, July 27, 2009

I rebuilt and even restarted my vpc but so far no luck with it. :)
will poke around to see I can resolve the issue.

Andy

figuerres replied on Wednesday, September 09, 2009

andy:

I am using CSLA framework for my internal application and have a lot of success with it.
Silverlight 3 looks very sexy with the built-in features for biz app.  I am interested using cslalight for a real LOB app.  Any pit-fall/gotcha that I should be aware of?
I tried out the Rolodex sample app and ran into problem when loading CompanyEditor user control


   at MS.Internal.XcpImports.CheckHResult(UInt32 hr)
   at MS.Internal.XcpImports.Collection_AddValue[T](PresentationFrameworkCollection`1 collection, CValue value)
   at MS.Internal.XcpImports.Collection_AddDependencyObject[T](PresentationFrameworkCollection`1 collection, DependencyObject value)
   at System.Windows.PresentationFrameworkCollection`1.AddDependencyObject(DependencyObject value)
   at System.Windows.Controls.UIElementCollection.AddInternal(UIElement value)
   at System.Windows.PresentationFrameworkCollection`1.Add(T value)
   at Rolodex.Page.ShowControl(UserControl control)
   at Rolodex.Page.<>c__DisplayClass4.b__3(Object o1, EventArgs e1)
   at Rolodex.CompanyEditor.OnDataLoaded()
   at Rolodex.CompanyEditor.CslaDataProvider_DataChanged(Object sender, EventArgs e)



I am using the latest version(3.7)
Any suggestion how to resolve the err exception?



in case folks are still stuck on this....
looks like a bug in silverlight.
see here for a possible work around:
http://silverlight.net/forums/p/121515/284670.aspx#284670

sergeyb replied on Wednesday, September 09, 2009

It is possible that this is related to the latest fix to PropertyStatus for SL 3 that Rocky implemented recently. Try to use the latest framework version that has this fix.

Sergey Barskiy
Principal Consultant
office: 678.405.0687 | mobile: 404.388.1899

Microsoft Worldwide Partner of the Year | Custom Development Solutions, Technical Innovation

-----Original Message-----
From: figuerres [mailto:cslanet@lhotka.net]
Sent: Wednesday, September 09, 2009 5:53 PM
To: Sergey Barskiy
Subject: Re: [CSLA .NET] cslalight Rolodex exception

andy:I am using CSLA framework for my internal application and have a lot of success with it.Silverlight 3 looks very sexy with the built-in features for biz app.  I am interested using cslalight for a real LOB app.  Any pit-fall/gotcha that I should be aware of?I tried out the Rolodex sample app and ran into problem when loading CompanyEditor user control
   at MS.Internal.XcpImports.CheckHResult(UInt32 hr)   at MS.Internal.XcpImports.Collection_AddValue[T](PresentationFrameworkCollection`1 collection, CValue value)   at MS.Internal.XcpImports.Collection_AddDependencyObject[T](PresentationFrameworkCollection`1 collection, DependencyObject value)   at System.Windows.PresentationFrameworkCollection`1.AddDependencyObject(DependencyObject value)   at System.Windows.Controls.UIElementCollection.AddInternal(UIElement value)   at System.Windows.PresentationFrameworkCollection`1.Add(T value)   at Rolodex.Page.ShowControl(UserControl control)   at Rolodex.Page.<>c__DisplayClass4.b__3(Object o1, EventArgs e1)   at Rolodex.CompanyEditor.OnDataLoaded()   at Rolodex.CompanyEditor.CslaDataProvider_DataChanged(Object sender, EventArgs e)
I am using the latest version(3.7)Any suggestion how to resolve the err exception?

in case folks are still stuck on this....
looks like a bug in silverlight.
see here for a possible work around:
http://silverlight.net/forums/p/121515/284670.aspx#284670

Copyright (c) Marimer LLC