In one of our applications, the designer will not load for me on several forms. I am getting "The variable <> is either undeclared or was never assigned." for two PopupMenuTools (that are both declared and instantiated in InitializeComponent) as well as several "Object reference not set to an instance of an object." that only have "Infragistics.Win.UltraWinToolbars.ToolPropsBase.ResetMaxWidth()" as a call stack. I have checked that the Infragistics references are all on the same version (and none are set to copy local) and that there aren't any incorrect entries in "licenses.licx." I have tried rebuilding the project/solution (including restarting VS in between). I unstalled the other "Infragistics.Win" version I had installed, and, reinstalled the problematic version. I have also confirmed that the correct assemblies are in the GAC. I still have been unable to load the designer. A teammate is able to load the forms in question without incident, so it is not a code issue.Does anyone have any other ideas of what I can check/try?
Hello,
Could you please let me know the version from which you upgrade your solution, and also the target version to which you want to upgrade. Is your solution was built previously on Visual Studio 2008 or older ?
First of all be sure that you have installed the exactly same version (I mean version and service release) like this of yours teammate.
Also in the actions which you describe that you have done, I have noticed a few little oversights, after you have been checked that all references are updated, you should clean the content of “license.licx” from all Infragistics' entries (if you are using only Infragistics dlls then the license.licx should be empty) and save it, also you should check “Specific Version”, you could set it to false, then close all opened designers of the forms of your solution, clean your solution (right click on your solution in “Solution Explorer”, choose “Clean solution ” from the context menu) and the rebuild your solution. Now if you open the designer of your forms, everything should works.
Please let me know if you have any further questions.
I am not upgrading anything. The solution is VS 2010. I have the same version and service release of Infragistics installed.I went through and set "Specific Version" to false for all of the Infragistics dlls, cleaned and rebuilt to no avail.
Hello ,
I assume that the latest screen shot is from your “Programs and Features” (“Add Remove”) and if the exact version of Infragistics is installed on your machine and your teammate machine, then it seems that this is some kind of Visual Studio designer or something of the operation system causes this issue. Is your team mate uses Visual Studio SP1, are you using Visual Studio SP1? May be the version of visual studio is different. Did you try to click “Ignore and Continue” in the designer?
I have the same problem
Do you find a solution ?
Thanks
I too have the same problem using the same version of .NetAdvantage 4.3.
Previously, we were using the UltraWinToolbars controls on some forms in a project built in Visual Studio 2008 and it works fine in the Visual Studio designer.
We upgraded the project to Visual Studio 2010 (just the standard automatic upgrade to the .vbproj files) and left the .Net Framework at version 3.5 when compiling.
Now, when we try to open the form in the Visual Studio 2010 designer, we get the same errors as the original poster:
To prevent possible data loss before loading the designer, the following errors must be resolved: 5 Errors Ignore and Continue Why am I seeing this page? Object reference not set to an instance of an object. Instances of this error (57) 1. Hide Call Stack at Infragistics.Win.UltraWinToolbars.ToolPropsBase.ResetMaxWidth()
All the other forms that use many different Infragistics controls all open and view fine in Visual Studio 2010 except the ones that use the UltraWinToolbars. If that control is not on the form, it works fine (the same form that is currently causing errors).
On the following link you will find a list of supported environments of Infragistics components, please expand “NETADVANTAGE FOR WINDOWS FORMS” and pay attention on “Environments” section.
https://es.infragistics.com/support/supported-environments
Visual Studio 2012
NetAdvantage for .NET 12.1 and later.
Visual Studio 2010
NetAdvantage for .NET 2010 Volume 1 and later.
Visual Studio 2008
NetAdvantage for .NET 2008 Volume 1 up to NetAdvantage for .NET 2012 Volume 1
Visual Studio 2005
NetAdvantage 2005 Volume 3 up to NetAdvantage for .NET 2012 Volume 1
Visual Studio 2003
NetAdvantage for .NET 2007 Volume 1 and earlier
Visual Studio 2002
Any alternative solution about this issue? Or just need to upgrade NetAdvantage to 2010?
Although this is a stale stream, I am adding to it as I have the same problem with NetAdvantage version 6.1 porting over to Visual Studio 2015.
The project came over from one PC to another just fine while in Visual Studio 2008.
The application runs fine, but I cannot display the form in Designer without the aforementioned errors regarding ResetMaxWidth.
I have ruled out PC differences, so it seems it has something to do with VS2015???
Hi All
I am using Infragistics V5.3 components in winForm,with visual studio 2010 and everything works normally.But after installing Visual Studio 2013 (and framework 4.5) the designer isn't opening normally in visual studio 2013 but when running the application,the form load normally.
Is there any problem,or incompatibility mode between Infragistics V5.3 components and framework V4.5 noting that with framework v4.0 the designer open normally ?