i have just upgraded my computer to a Sony all in one PC and i have installed all the software i use,, but when it comes to running my application which uses infragistics controls via deployment and via Debugging environment the app crashes as soon as it has to load data into a XamDataGrid with the following error:
Argument Exception was unhandled
Item has already been added. Key in dictionary: 'Infragistics.Windows.Automation.Peers.DataPresenter.CellAutomationPeer' Key being added: 'Infragistics.Windows.Automation.Peers.DataPresenter.CellAutomationPeer'
I have tried tracking down the error but to no avail so any assistance will be greatly appreciated.
The Computer is running Windows 7 Professional 64bit and im using NetAdvantage WPF 2010.3
Alan/Andres,
Thanks for clarifying. With the suggested fix the issue is fixed . I appreciate your help in this regard. Here are the steps we followed. Can you please verify these steps and let us know for any issues ?
· Binaries version currently used 9.1.1006
· Downloaded binaries from NetAdvantage for Win Client 2009 Vol. 1 - WPF Source Code (Release Build Version 9.1.1006)
· Opened solution in VS2008
· Added strong name for all 9.1 version projects in the source code.
· Compiled all the binaries in release mode.
· All the binaries are picked from respective bin/Debug folder and replaced in our common location in TFS
pramanju,
For strong naming the assembly the source code that we provide doesn't include the key file so you would need to generate your own key and strong name the assembly yourself.
For error 11 and error 12 where the type is referenced is defined in an assembly that isn't referenced, this is likely coming from another assembly that is already compiled that references the version of the Infragistics3.Wpf.v9.1 assembly that we provide rather than the one that you compiled. To resolve this you will need to recompile every assembly that is dependent on this assembly.
If you were using version 9.1.20091.1006, then you would want to use the same version of the source code if you are looking to only make the changes needed for the fix you wish to apply.
Let me know if you have any questions with this matter.
We are using 9.1.1006 version. In this case which version of source code should I use for the fix? I downloaded both service release 9.1.2215 and Release build version 9.1.1006.
Also what would be steps after download. I was able to compile Infragistics3.Wpf.v9.1 binary but the depandant binaries are failing because Infragistics3.Wpf.v9.1 is not strongly named. Can you please provide some assistance in resolving this post fix failures?
Let me know if there are any specific steps we need to follow to get local compiled binary into our release.
To summarize below are the issues I'm facing now.
Infragistics3.Wpf.v9.1 is not strongly named and compilation is failing. We need a workaround here as all of our binaries are strongly named.
The above dll is been referred in atleast 100 projects across suite. All these dlls are referred from single location. Can we replace the old binary with locally compiled binary and expect everything to work as before?
As I mentioned in my previous step I am facing below compilation issues.
Error 11 The type 'Infragistics.Windows.Selection.ISelectableItem' is defined in an assembly that is not referenced. You must add a reference to assembly 'Infragistics3.Wpf.v9.1, Version=9.1.20091.1006, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb'.
Error 12 The type 'Infragistics.Windows.Helpers.DependencyObjectNotifier' is defined in an assembly that is not referenced. You must add a reference to assembly 'Infragistics3.Wpf.v9.1, Version=9.1.20091.1006, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb'.
Andrew, apart from strong name issue, I'm getting two more compilation issues after changing the reference to local assembly which has the fix. I did verify that the dll has the interface but not sure what is missing
Please let me know solutions for these.
Thanks Andrew,I'll take the code. Now I'm unable to build our assembly and compilation failiing because Infragistics3.Wpf.v9.1 is not signed with strong name. Could you suggest any work around for this issue?
Error 10 Unknown build error, 'A strongly-named assembly is required. (Exception from HRESULT: 0x80131044)'