New Posts New Posts RSS Feed: IdeaBlade 3.6.0.2 with Infragistics Controls Version 7.3.20073.1043
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

IdeaBlade 3.6.0.2 with Infragistics Controls Version 7.3.20073.1043

 Post Reply Post Reply
Author
davidklitzke View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 14-Jun-2007
Posts: 715
Post Options Post Options   Quote davidklitzke Quote  Post ReplyReply Direct Link To This Post Topic: IdeaBlade 3.6.0.2 with Infragistics Controls Version 7.3.20073.1043
    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.
 
 
 
 


Edited by davidklitzke - 06-Feb-2008 at 9:01am
Back to Top
cdsmith View Drop Down
Newbie
Newbie
Avatar

Joined: 10-Dec-2007
Location: United States
Posts: 4
Post Options Post Options   Quote cdsmith Quote  Post ReplyReply Direct Link To This Post 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,
 


Edited by cdsmith - 06-Feb-2008 at 7:21am
Christopher Smith
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down