I migrated a win-application from IG 2008 vol 1 to IG 2008 vol 2. After compiling and start I get a NullReferenceException on initializing a new Form.
In the form is a UltraGrid with an UltraDataSource (dsMain) that will be filled manualy.
The Exception is thrown in the InitializeComponent method of my form.
private void InitializeComponent(){
// ...
((System.ComponentModel.ISupportInitialize)(this.dsMain)).EndInit();
}
private Infragistics.Win.UltraWinDataSource.UltraDataSource dsMain;
The StackTrace is:
bei Infragistics.Win.UltraWinDataSource.UltraDataSource.UDSBindingSource.SetBindingSources(UltraDataBand band, Dictionary`2 bindingSources) bei Infragistics.Win.UltraWinDataSource.UltraDataSource.UDSBindingSource.InternalSetBand(UltraDataBand band, Dictionary`2 oldBindingSources) bei Infragistics.Win.UltraWinDataSource.UltraDataSource.OnDeserializationComplete(UltraDataRowsCollection deserializedRows, Dictionary`2 oldBindingSources) bei Infragistics.Win.UltraWinDataSource.UltraDataSource.System.ComponentModel.ISupportInitialize.EndInit() bei MyApp.MyForm.InitializeComponent() in D:\MyApp\MyForm.Designer.cs:Zeile 360.
I hope someone can help me!
Michael
Hi Michael,
Does this happen every time? Can you duplicate this in a small sample project? If so, you should Submit an incident to Infragistics Developer Support so they can check it out. If this worked in the previous version, it seems like it's probably a bug.
Hi Mike,
1) Yes it does every time, when I start my small demo (see attached archive IGDemo.zip).
2) Unfortunately I found an other bad thing about the new Version of IG.
The visual studio designer add every time when I modify something in the grid (like the size of a column) some lines of code to the designer file (MyForm.Designer.cs) that can't be compiled:
// // gridMain // this.gridMain.DataSource = this.bsMain; appearance2.BackColor = System.Drawing.Color.White; appearance2.BorderColor = System.Drawing.Color.SlateGray; ApplyResources(appearance2.FontData, "appearance2.FontData"); ApplyResources(appearance2, "appearance2");
Is this an bug?
That looks like a bug I have come across a couple of times when upgrading projects from earlier version of visual Studio into VS2008. It's nothing to do with the grid or the Infragistics controls as far as I know.
Try changing it to:
resources.ApplyResources(appearance2.FontData, "appearance2.FontData");
I’ve observed this problem too. When I make any changes in the graphical designer in VS2008(german) SP1the automatic updated code in the file "MainForm.Desiger.cs" does generate these lines in the UltraWinGrid v8.2 section.ApplyResources(appearance21.FontData, "appearance21.FontData");ApplyResources(appearance21, "appearance21");ApplyResources(appearance22.FontData, "appearance22.FontData");ApplyResources(appearance22, "appearance22");These lines don’t compile.Changing manually toresources.ApplyResources(appearance21.FontData, "appearance21.FontData");solves the problem.The UltraExplorerBar v8.2 in the same project has always the right "resources." prefixresources.ApplyResources(ultraExplorerBarItem1, "ultraExplorerBarItem1");Best regards
Good luck if you change your designer file!
Changing it manualy is not a solution, because it happens every time when you change the content of the form in the designer. This meansmove a component or resize something.
Unfortunalty Infragistics told me:
Hello,Our developers have completed their review of development incident BR35349.They have determined that this is "not a bug" for the following reasons:[This may be a bug in Visual Studio, but is has nothing to do with ourcontrols. I don't know why VS is removing the "resources." beforeApplyResources, but this is handled by VS, not by us. In my experience, ifyou simply put the word "resources." back in, it will work fine and it doesnot get removed the second time.Also, I don't think this has anything to do with upgrading the Infragisticscomponents. This has only happened to me when I upgraded a project from oneversion of the VS to another.]I have marked this incident as "Awaiting Customer Action" in our incidenttracking system, pending your approval of closure. If you have furtherinformation regarding this issue or require further explanation of theconclusion, please respond to this message so that I can research furtherand provide you with the appropriate feedback in this regards.Sincerely,SaurabhDeveloper Support EngineerInfragistics, Inc.
After i sent them a video they resubmitted this as a bug. But since 1 Month I heard nothing about any progress.
Today I looked to "My Supported Requests" and I found:We don't have any support requests associated with this accountOur records show that you have not yet submitted any support requests using this account. If you'd like to submit a request, please head on over to the New Support Request page and let us know.
Today I looked to "My Supported Requests" and I found:
We don't have any support requests associated with this account
Our records show that you have not yet submitted any support requests using this account. If you'd like to submit a request, please head on over to the New Support Request page and let us know.
What does it mean? They fixed it or they ignored it???
systema_1099 said:After i sent them a video they resubmitted this as a bug. But since 1 Month I heard nothing about any progress. Today I looked to "My Supported Requests" and I found: We don't have any support requests associated with this account Our records show that you have not yet submitted any support requests using this account. If you'd like to submit a request, please head on over to the New Support Request page and let us know. What does it mean? They fixed it or they ignored it???
Today I looked to "My Supported Requests" and I found: We don't have any support requests associated with this account Our records show that you have not yet submitted any support requests using this account. If you'd like to submit a request, please head on over to the New Support Request page and let us know.
Developer Support recently moved to a new support tracking system. The page you're looking at only shows cases that were entered in the new system (which it seems you have none), and can't show any cases in our old system. If your issue were fixed and possibly closed, you'd see a "Resolved" tab that would show all of your closed support requests, and an "Active" tab showing those that haven't been closed.
Can you provide me with an incident number for when you first submitted this? I'll be able to determine if this was something that may have been lost during the transfer, or if there simply have been no status updates to provide. My suspicion, without looking in more detail, is that we've probably fixed this (as Mike mentioned) but haven't yet released a hot fix containing the change. Wiht the incident number, I'll be able to see what actually happened.
By the way, if you ever encounter a problem with a support request, such as if you don't hear from it in a long time, you can contact me at dsmanager@infragistics.com and I'll be happy to help. Generally, you can also request for information or escalation by updating the case itself through our web interface, but in this specific situation, there isn't a case in our current system for you to update.