When dragging an UltraPanel on a Control Design, I'm getting following error:
---------------------------
Microsoft Visual Studio---------------------------Failed to create component 'UltraPanel'. The error message follows: 'System.Runtime.InteropServices.COMException (0x8004D745): A reference to the component 'Infragistics4.Win.Misc.v13.1' already exists in the project. at VSLangProj.References.Add(String bstrPath) at Microsoft.VisualStudio.Design.VSTypeResolutionService.PerformReferenceUpdate(List`1 newReferences) at Microsoft.VisualStudio.Design.VSTypeResolutionService.System.ComponentModel.Design.ITypeResolutionService.ReferenceAssembly(AssemblyName name) at Microsoft.VisualStudio.Design.Serialization.CodeDom.AggregateTypeResolutionService.ReferenceAssembly(AssemblyName name) at System.Drawing.Design.ToolboxItem.GetType(IDesignerHost host, AssemblyName assemblyName, String typeName, Boolean reference) at System.Drawing.Design.ToolboxItem.CreateComponentsCore(IDesignerHost host) at System.Drawing.Design.ToolboxItem.CreateComponentsCore(IDesignerHost host, IDictionary defaultValues) at System.Drawing.Design.ToolboxItem.CreateComponents(IDesignerHost host, IDictionary defaultValues) at Syst...'---------------------------OK ---------------------------
Removing the reference to Misc solves the problem, but when dragging a new control same error happens again...
Version 13.1 (latest hotfix/version).
Lieven
Hello Lieven,
Thank you for contacting Infragistics.
I'd like you to open the licenses.licx file that can be found under the Properties node in a C# project or the My Project node in a VB project. For a VB project you may need to click the "Show All Files" button in Solution Explorer first.
One you have the file open, clear the entire contents of the file and then save it. Do a clean and rebuild of the project and then try adding the panel again.
Please let me know if you have any other questions about this.
Ok, If I do that, and rebuild the solution, I'm still getting the same error...
I attached my solution, so you can have a look at it (if you want to).
I do have Infragistics 11.2 installed next to 13.1 (so both of them are in my Toolbox).
Lieven Cardoen
Thank you for the sample project.
I was not able to reproduce the issue you described.
I did see a different error message when I opened the CustomizationControlBase control in the designer. The attached zip file contains two images. One shows the error message and the other shows the section of designer code that caused the error. If you'll look at line 107 in code.png, you'll see that the UltraPanel's Controls collection is being modified when it's read-only. Removing that line from the designer file resolved the error.
And a screenshot.