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.
We are using later versions of the controls in other applications, but, have not upgraded this one. Also, since it is working on my teammate's machine, there shouldn't be an issue of it working for me. I am trying to get ideas for how else to troubleshoot it.
Hello,
I am just checking about the progress of this issue. Let me know If you need my further assistance on this issue?
Thank you for using Infragistics Components.
I do not think you understand the issue. I have included screen shots of the errors we are encountering. The images show the designer error, and, the lines of code the issues resolve to. The application compiles and functions correctly. I would like to get some suggestions of other troubleshooting steps I can take to resolve these issues.
Hello ,
This errors could occur if you have not installed Infragistics Component for the version which your solution uses, I do not meant that the needed dlls for the project are not available for the solution, but if Infragistics Component for this version is not installed, then you are not able to use the designer and gets errors like this. Please notice that you are not able to use the design for one volume to design components from other volume.
I do have the version corresponding to the version of the Dll's installed, as seen below.
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 ?
Any alternative solution about this issue? Or just need to upgrade NetAdvantage to 2010?
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
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).