Hi,
I have a windows forms project that uses Infragistics UltratoolbarsManager on a derived usercontrol. Recently we have upgraded the projects from Infragistics 10.2 to 10.3. After upgrade, when i open the UserControl desginer, the "Customize" option is missing in the right click menu and property grid for UltraToolbarsManager. Inplace designer is also not working.
Everything works fine if I create a new sample project.
I have tried removing the control and added a new control; but that didn't help. Currently the DockWithinContainer property is set to the UserControl itself.But I tried changing it to one of the Panels (docked fill) on the UserControl. But that too gives an error, "Property not valid - Object reference not set to an instance of an object."
Please help me.
Thanks in advance.
This is probably an indication that Visual Studio is unable to find the Design assembly which provides the design-time functionality for the UltraToolbarsManager.
If this is working when you put a ToolbarsManager on a form in a new project, then there must be something in your existing project which is causing the confusion.
When you upgrading your project, did you use the Infragistics Project upgrade utility? If not the your project might still be referencing the older version of the assemblies. Check the licenses.licx file of your project and make sure there's nothing in there referencing the 10.2 components.
Also, make sure you application does not reference any version of Infragistics2.Win.vXX.X.Design.dll.
This assembly should only be in the GAC on the machine, and should never be referenced by the project or solution directly.
Thanks for your reply. But I have already verified throughout the project that the project is no more referring to any of the older DLL versions. Also the Design dll you have mentioned is also not referred anywhere.
One thing I noticed is, when I remove all the Infragistics references and controls, re-add them from the toolbox, build the project and open the designer again, I'm able to see the customize working. That too not very consistent. If I add another reference later and open the desinger again, "Customize" is gone.
This behaves very strangely. I understand that the problem is with the references. But is there any procedure with which I can narrow down to the exact problem ? Please help me.
I have fixed a problem like this maybe two years ago, but I don't remember how. I think there was something missing in the designer.cs file. Try to drag a toolbars manager into a new simple form and compare the designer code you get there with the designer code of your control.
There's no surefire way to track this down, but it's almost-certainly a reference issue.
What I would do is open up another instance of Visual Studio and hook into the process of the instance that has your application open. Then you can go to the modules window in the Debugging instance and see the assemblies that are loaded into memory.
Look for Infragistics reference and see what's getting loaded into memory that is incorrect. It's most likely an incorrect version of one of the assemblies, or duplicate versions of the same assembly.
By the way... did you check the entire solution for old references? It's not just the project you need to check - if there is more than one project in the solution, you should be sure to check them all.