We have a Visual Studio 2005 (VB.net) application that was using the NetAdvantage 2007.2 controls. We recently converted this solution/project to Visual Studio 2010 and upgraded the Infragistics controls to 2011.1 using the Version Utility to do the upgrade.
The interesting thing is we can open the solution and build it and run it with no issues. But if we try and open any of the forms in design view that use any Infragistics controls we get a series of errors/warnings. Some of the errors are seeing are:
Warning 41 The variable 'UltraGridColumn9' is either undeclared or was never assigned.
Warning 51 The variable 'UltraGridBand2' is either undeclared or was never assigned.
Warning 22 The variable 'Appearance6' is either undeclared or was never assigned.
Warning 148 Could not find type 'Infragistics.Win.UltraWinMaskedEdit.MaskedEditTabNavigation'. Please make sure that the assembly that contains this type is referenced. If this type is a part of your development project, make sure that the project has been successfully built using settings for your current platform or Any CPU.
Again, the above is just a sample of the errors we are seeing. I should also mention that we are targeting the 4.0 (full) framework.
Any ideas what could be causing these problems and how we can correct them?
Thanks.
Jim
Hello Jim,
I am very glad to hear that you have resolved the issue. Let us know if you have any additional questions moving forward.
Michael,
I found the issue. One of our custom built DLLs was still using an older version of the UltraWinGrid. I mistakenly had assumed that DLL had been updated. I removed it from the references and fixed the accompanying errors and now the forms that had been throwing the error open in design view with no issues. I sincerely appreciate all your help!
Yup, I do have the Infragistics2.Win.UltraWinMaskedEdit.v11.1 as one of my references. Below are all my Infragistic references.
Infragistics2.Documents.Core.v11.1Infragistics2.Documents.Excel.v11.1Infragistics2.Shared.v11.1Infragistics2.Win.Misc.v11.1Infragistics2.Win.UltraWinCalcManager.v11.1Infragistics2.Win.UltraWinDataSource.v11.1Infragistics2.Win.UltraWinDock.v11.1Infragistics2.Win.UltraWinEditors.v11.1Infragistics2.Win.UltraWinGrid.ExcelExport.v11.1Infragistics2.Win.UltraWinGrid.v11.1Infragistics2.Win.UltraWinMaskedEdit.v11.1Infragistics2.Win.v11.1
I haven't had an opportunity to try excluding one of the lines of code to see if that makes a difference with some of the messages. I'll get to that later this afternoon.
Thanks,
Hello,
I wanted to provide some additional information regarding the different warnings are you seeing to assist you troubleshooting the behavior.
"Warning 148"
Please make sure the following assembly is referenced in your project. Infragistics2.Win.UltraWinMaskedEdit.v11.1
Warning 41, 51, 22:
Normally these are extraneous lines of code from once instantiated variables that can potentially me removed. You can test this be exclude one of them and determine if they messages are removed. Otherwise, please provide a list of your references used in your application.
For more details I recommend referring to the following MSDN article
Hello James,
Yes, in most cases, closing and rebuilding the form's project should relieve some of the issues. However, I recommend that you review your designer class file(s) associated with your forms. You may need to "Show All Files" button in Solution Explorer first.
As a general rule, please try not to change/modify generated code. I recommend reviewing the following article.
To further troubleshoot the behavior I'd advise in attaching your project or a smaller one that reproduces the behavior.