VS.NET 2010 (and above) Users Click Here   

HOMECONTACT PRODUCTS DOWNLOADS PURCHASE TESTIMONIALS FORUMS COMPANY CONTACT
Home
Products
Downloads
Purchase
Licensing
Licensing FAQ
Software Updates
Support Forums
Testimonials
Feature Requests
Guarantee
About Us
Contact Us
Hosting Companies
Privacy Policy
   
Shopping Cart


General forum



[ Reply to Post ] [ Back To Forum ]
From: "Gordon Burgett" <gordon.burgett@...>
Date: 7/9/2013 9:33:49 AM
Subject: System.InvalidOperationException: DataTable internal index is corrupted
Hi,

We are using aspNetEmail v3.6.1.22 in our production code to add .ics calendar attachments to emails.

We are seeing an exception occurring seemingly randomly in our production code:
System.InvalidOperationException: DataTable internal index is corrupted: '5'.
   at System.Data.RBTree`1.RBInsert(Int32 root_id, Int32 x_id, Int32 mainTreeNodeID, Int32 position, Boolean append)
   at System.Data.RBTree`1.RBInsert(Int32 root_id, Int32 x_id, Int32 mainTreeNodeID, Int32 position, Boolean append)
   at System.Data.Index.InitRecords(IFilter filter)
   at System.Data.Index..ctor(DataTable table, Int32[] ndexDesc, IndexField[] indexFields, Comparison`1 comparison, DataViewRowState recordStates, IFilter rowFilter)
   at System.Data.Select.CreateIndex()
   at System.Data.Select.SelectRows()
   at System.Data.DataTable.Select(String filterExpression)
   at aspNetEmailInternal.ᐋ.ᐁ(String )
   at aspNetEmailInternal.ᐋ.ᐁ()
   at aspNetEmail.Calendaring.iCalendar.ᐂ(Boolean )
   at aspNetEmail.Calendaring.iCalendar..ctor()
   at aspNetEmail.Calendaring.iCalendarComponent.ToString(iCalendarType cal)
   at aspNetEmail.Calendaring.iCalendarComponent.ToString()
   at GDSX.OurProduct.OurClass.OurMethod()


The relevant code is here:
Dim cal As New CustomAspNetCalendarComponent()
cal.BeginLabel = calendar.BeginLabel
cal.EndLabel = calendar.EndLabel

Me.CalendarPropertiesFill(calendar.Properties, cal.Properties)            Me.CalendarComponentsFill(calendar.Components.Concat(calendar.Events.Cast(Of CalendarComponent)), cal.Components)

Dim calString As String = cal.ToString()


The CustomAspNetCalendarComponent is our own private class extending from iCalendarComponent:
Private Class CustomAspNetCalendarComponent
        Inherits aspNetEmail.Calendaring.iCalendarComponent

End Class

It is empty simply because we wanted to use the base class without overriding anything, but the base class is abstract.

The purpose of this code is to copy iCalendar properties from our abstraction layer to the aspNetEmail iCalendar implementation. CalendarPropertiesFill simply sets properties on a new CustomCalendarProperty(), while CalendarComponentsFill simply walks the tree of CalendarComponent objects to add the same tree of CustomAspNetCalendarComponent objects.

This is all done serially, there is no parallelization or threading in this code. I have looked online but been unable to find any assistance on this issue, beyond a bug report that seems dated because it is for .NET 2.0: (http://support.microsoft.com/kb/932491?wa=wsignin1.0)

Any help you can provide would be appreciated.

Thank you,
Gordon Burgett
Software Developer, GDSX

 

 

 



Thread View

Subject By Date
System.InvalidOperationException: DataTable internal index is corrupted [ you are here ] Gordon Burgett 7/9/2013
   RE: System.InvalidOperationException: DataTable internal index is corrupted dave wanta 7/9/2013
     RE: System.InvalidOperationException: DataTable internal index is corrupted Gordon Burgett 7/9/2013
       RE: System.InvalidOperationException: DataTable internal index is corrupted dave wanta 7/9/2013
   RE: System.InvalidOperationException: DataTable internal index is corrupted dave wanta 7/9/2013
     RE: System.InvalidOperationException: DataTable internal index is corrupted Gordon Burgett 7/10/2013
       RE: System.InvalidOperationException: DataTable internal index is corrupted dave wanta 7/10/2013
         RE: System.InvalidOperationException: DataTable internal index is corrupted Trey Davis 9/16/2014
           RE: System.InvalidOperationException: DataTable internal index is corrupted dave wanta 9/16/2014
             RE: System.InvalidOperationException: DataTable internal index is corrupted Trey Davis 10/3/2014
               RE: System.InvalidOperationException: DataTable internal index is corrupted dave wanta 10/7/2014
                 RE: System.InvalidOperationException: DataTable internal index is corrupted Trey Davis 10/9/2014
                   RE: System.InvalidOperationException: DataTable internal index is corrupted dave wanta 10/9/2014

 

 

Testimonial

Just wanted to check and see if you added any changes to the AspNetMail, or maybe you have new interesting components we might want to check out or upgrade to ;) Thanks. Btw: your stuff works great haven’t had problems yet (we love you) ;) "

Eran

Read more testimonials
ListNanny aspNetDNS aspNetEmail aspNetPOP3 aspNetMX IPMuncher aspNetMIME aspNetPING aspNetTraceRoute aspNetIMAP aspNetMHT