Print Page | Close Window

IdeaBlade 3.6.0.2 with Infragistics Controls Version 7.3.20073.1043

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce Classic
Forum Discription: For .NET 2.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=675
Printed Date: 11-Jun-2026 at 9:18am


Topic: IdeaBlade 3.6.0.2 with Infragistics Controls Version 7.3.20073.1043
Posted By: cdsmith
Subject: IdeaBlade 3.6.0.2 with Infragistics Controls Version 7.3.20073.1043
Date Posted: 06-Feb-2008 at 1:51am
I've just deployed a new version of an application that has 1 new form that contains an UltraGridBindingManager (7.3) control along with an UltraWinGrid 7.3 control.  I don't have any trouble on my development system and the machine.config has the necessary binding redirections and since the Infragistics controls are installed in the GAC.
 
But when I try to open the form on a client machine, I get the following exception:
 
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.FileLoadException: Could not load file or assembly 'Infragistics2.Win.UltraWinGrid.v7.3, Version=7.3.20073.1041, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

I tried to add binding redirection statements to my app.config such as follows but then, after I publish the application and try to update it on the client, I get a message that I need to have the Infragistics2.Win.UltraWinGrid.v7.3.dll in the GAC before the update can be completed so the new app.config never gets doesn't get deployed to the client.

<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">

  <dependentAssembly>

    <assemblyIdentity name="Infragistics2.Win.UltraWinGrid.v7.3"

          publicKeyToken="7dd5c3163f2cd0cb" />

    <bindingRedirect oldVersion="7.3.20073.1041" newVersion="7.3.20073.1043" />

  </dependentAssembly>

</assemblyBinding>
 
 
I do find that if I edit the machine.config on the client and add the same binding redirection statements, the new form loads and performs fine without need for the 7.3.20073.1041 version DLL and without any need for the DLL to be in the GAC.
 
Is there a way I can add binding redirections to the app.config so that I can get ClickOnce updates to succeed without touching the machine.config on the client machines?
 
Much Thanks,
 


-------------
Christopher Smith



Replies:
Posted By: davidklitzke
Date Posted: 06-Feb-2008 at 8:56am
Try using the following example.  It has a do nothing app that opens a Form with an UltraGridBindingManager.  It also has a Setup project.  When you build the Setup project, you will get errors that it can't locate some Infragistics DLL's, but you can safely ignore these messages, and it will install just fine.  This solution uses an app.config file.  Use this as an example for your ClickOnce deployment.  I have not tried this with ClickOnce, but I expect that it should work.
 
One final warning.  Be sure that you do not have Visual Studio open in design mode when you build the Setup project.  If you do, you will lose your Infragistics bindings.
 
http://www.ideablade.com/forum/uploads/20080206_120113_1043Problem.zip - uploads/20080206_120113_1043Problem.zip
 
 
 



Print Page | Close Window