Solved

Infragistic UltraWinGrid 8.3: Exception has been thrown by the target of an invocation.

Posted on 2009-06-29
2
1,115 Views
Last Modified: 2013-11-26
Hi, I have a project that worked fin but now I'm opening it and when I go to the designer view of the form that uses a custom control that inherits from the Infragsitic.UltraWinGrid 8.3 then I get the message:

Object reference not set to an instance of an object.
The variable 'ugvGroupageFiles' is either undeclared or was never assigned.
The variable 'ugvShipmentMovementsDetails' is either undeclared or was never assigned.
(those are the UltraWinGrid inheritted controls) until now I never had a problem with this, don't know neither what I did to change that but I'm sure it can be fixed with a little bit of you help.

In VS I get several warnings:

Warning      2      Exception has been thrown by the target of an invocation.            0      0      
Warning      3      The variable 'ugvGroupageFiles' is either undeclared or was never assigned.      C:\Documents and Settings\lven\My Documents\Visual Studio 2008\Projects\NaviTransN\NaviTransNGUI\frmGroupageFiles.designer.cs      222      0      
Warning      4      Exception has been thrown by the target of an invocation.            0      0      
Warning      5      The variable 'ugvShipmentMovementsDetails' is either undeclared or was never assigned.      C:\Documents and Settings\lven\My Documents\Visual Studio 2008\Projects\NaviTransN\NaviTransNGUI\frmGroupageFiles.designer.cs      382      0      
0
Comment
Question by:ACAE
2 Comments
 
LVL 8

Expert Comment

by:Bob Hoffman
ID: 24738274
Do you have more then one version of Infragistic on your machine? If so make sure you don't have reference to multiple versions of Infragistic referenced in your project. I've had issue with this in my Infragistic projects. For some reson the project reference get screwed up.
0
 

Accepted Solution

by:
ACAE earned 0 total points
ID: 24742883
I also thought it was something with the references, but I found the solution.
I was setting certain colors from a XML File in the the constructor, so the VS2008 Designer didn't knew where to get the colors from and threw an error. By setting them in the FormLoad event it was fixed.
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

It seems a simple enough task, yet I see repeated questions asking how to do it: how to pass data between two forms. In this article, I will show you the different mechanisms available for you to do just that. This article is directed towards the .N…
Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question