|
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
|