troubleshooting Question

I am wrting a C# Windows app in VS2005 and do you know how would I resolve the error _COMPlusExceptionCode -532459699 "IndexOutOfRangeException was unhandled. Cannot find table 0"?

Avatar of zimmer9
zimmer9Flag for United States of America asked on
.NET ProgrammingC#
3 Comments1 Solution1043 ViewsLast Modified:
I am developing a C# Windows application using VS2005. I use SQL Server 2005 as the back end database. Do you know how I can resolve the error:

"IndexOutOfRangeException was unhandled. Cannot find table 0."
_COMPlusExceptionCode -532459699

The offending statement is at the following line of code at the beginning of my FOR loop:  
i <= ds.Tables[0].Rows.Count - 1

This error occurs in my module titled FallQueryACSToExcel which I attached.
FallQueryACSToExcel.txt
ASKER CERTIFIED SOLUTION
jmcmunn

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros