New Posts New Posts RSS Feed: Issues with Silverlight 2 DataGrid December 2008 Release and Devforce SL 4.3.0.1
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Issues with Silverlight 2 DataGrid December 2008 Release and Devforce SL 4.3.0.1

 Post Reply Post Reply
Author
pjj326 View Drop Down
Newbie
Newbie
Avatar

Joined: 24-Apr-2008
Posts: 9
Post Options Post Options   Quote pjj326 Quote  Post ReplyReply Direct Link To This Post Topic: Issues with Silverlight 2 DataGrid December 2008 Release and Devforce SL 4.3.0.1
    Posted: 30-Mar-2009 at 12:52pm

Trying to update System.Windows.Controls.Data.dll to the December release. I've followed these instructions from Microsoft:

To install the Silverlight 2 DataGrid December 2008 Release:
  1. Close all instances of Microsoft Visual Studio.
  2. Delete all cached toolbox items by removing all files beginning with "toolbox" from %LocalAppData%\Microsoft\VisualStudio\9.0.
    • On Microsoft Windows XP, %LocalAppData% is Documents and Settings\UserName\Local Settings\Application Data.
    • On Microsoft Windows Vista, %LocalAppData% is Users\UserName\AppData\Local.
  3. Replace the following assemblies with the ones in this package:
    • %ProgramFiles%\Microsoft SDKs\Silverlight\v2.0\Libraries\Client\System.Windows.Controls.Data.dll
    • %ProgramFiles%\Microsoft SDKs\Silverlight\v2.0\Libraries\Client\System.Windows.Controls.Data.Design.dll
  4. For any existing projects, delete the reference to System.Windows.Controls.Data.dll and then re-add the reference.

All appears to compile and run. When I try to load the datagrid with data I get the following error:

System.IO.FileNotFoundException was unhandled by user code
  Message="Could not load file or assembly 'System.Windows.Controls.Data, Version=2.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified."
  StackTrace:
       at IdeaBlade.Util.v4.PropertyInterceptorManager.TargetGroup.GetActions[TArgs](String targetName, PropertyInterceptorMode mode)
       at IdeaBlade.Util.v4.PropertyInterceptorManager.GetActions[TArgs](Type targetType, String targetName, PropertyInterceptorMode mode)
       at IdeaBlade.Util.v4.PropertyInterceptor`3.GetActions(PropertyInterceptorTiming timing, Type targetType)
       at IdeaBlade.Util.v4.PropertyInterceptor`3.BuildTargetedCombinedAction(Type targetType)
       at IdeaBlade.Util.v4.PropertyInterceptor`3.GetTargetedCombinedAction(Type targetType)
       at IdeaBlade.Util.v4.PropertyInterceptor`3.ExecuteActions(TArgs args)
       at IdeaBlade.Util.v4.PropertyInterceptor`3.GetValue(TInstance instance, Object context)
       at IdeaBlade.Util.v4.PropertyInterceptor`3.GetValue(TInstance instance)
       at IdeaBlade.EntityModel.v4.DataEntityProperty`2.GetValue(TInstance instance)
       at DomainModel.Customer.get_CompanyName()
  InnerException:
This happens in the Devforce samples as well. I've verified that the file (System.Windows.Controls.Data.dll) is contained in the XAP. This error happens in the DevForce DomainModel Designer file.
 
Any ideas? Thanks in advance for your help.
Back to Top
kimj View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 09-May-2007
Posts: 1391
Post Options Post Options   Quote kimj Quote  Post ReplyReply Direct Link To This Post Posted: 31-Mar-2009 at 11:14am
The Silverlight bits of DevForce 4.3.0.1 were built against the "standard" Silverlight 2 tools released in October 2008.  It looks like Microsoft did not make the old assemblies and the December DataGrid release version compatible.  DevForce is compiled against:
 
   System.Windows.Controls.Data, Version=2.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
 
While the assembly in the December release is named:
 
   System.Windows.Controls.Data, Version=2.0.5.0, Culture=neutral, PublicKeyToken=3d8c6023c75a3242
 
So, the assemblies were signed differently and the names don't match. 
 
I don't know a workaround for this.  I doubt that assembly binding redirection works in SL, and I don't know a way to add multiple parts with the same short name to the SL assembly manifest.  We will research this further to see if we can address this problem, but for now DevForce 4.3.0.1 works only with the October SL 2 bits.  (For the record, DevForce Silverlight 5.0.0.x uses Silverlight 3 Beta 1.)
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down