Solved

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

Posted on 2009-06-29
2
1,123 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

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

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

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…
How to install Selenium IDE and loops for quick automated testing. Get Selenium IDE from http://seleniumhq.org Go to that link and select download selenium in the right hand columnThat will then direct you to their download page.From that page s…
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.

828 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