Problem to locate the issue

Hi,
I don't know how I can locate the problem, due to the issue encountered by the attached?
t999.png
LVL 11
HuaMin ChenSystem AnalystAsked:
Who is Participating?
 
AndyAinscowFreelance programmer / ConsultantCommented:
Somewhere you aren't passing in an object (to a form) containing datacolumns with enough columns.  You must know how to localise the problem based on what you do.
eg.  If the user clicks 'EntryForm A' and this error appears then it is something to do with the code there.
0
 
AndyAinscowFreelance programmer / ConsultantCommented:
>>I don't know how I can locate the problem
Which bit of 'Could not find' followed by wildcard filename isn't that clear ?  You are supplying that path somehow.
0
 
HuaMin ChenSystem AnalystAuthor Commented:
Regarding the error shown in above, how to further trace the project, which part is causing the error?
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
AndyAinscowFreelance programmer / ConsultantCommented:
Well, where do you supply that path ?
0
 
HuaMin ChenSystem AnalystAuthor Commented:
Sorry, only the currently attached one is showing the relevant error.
tt1.png
0
 
AndyAinscowFreelance programmer / ConsultantCommented:
I'm puzzled, lets step back to find the common ground.

Is this problem in an app you are coding?
  or something you have from another developer?  
    from another company?
0
 
HuaMin ChenSystem AnalystAuthor Commented:
I have the relevant source of the project.
0
 
HuaMin ChenSystem AnalystAuthor Commented:
It is under my control. How to locate the reason of the problem?
0
 
AndyAinscowFreelance programmer / ConsultantCommented:
Somewhere you supply that path shown in your first screenshot.  Search for that path in the project.
0
 
AndyAinscowFreelance programmer / ConsultantCommented:
Also - use Windows File Explorer to check the path and files on your PC
0
 
HuaMin ChenSystem AnalystAuthor Commented:
Only the current screenshot is involved, to the error message. Please leave the 1st screenshot originally attached.
0
 
HuaMin ChenSystem AnalystAuthor Commented:
Thanks. I can capture this exception description like

************** Exception Text **************
System.IndexOutOfRangeException: Cannot find column 3.
   at System.Data.DataColumnCollection.get_Item(Int32 index)
   at System.Data.DataRow.get_Item(Int32 columnIndex)
   at Manager.FrmReport.FrmReport_Load(Object sender, EventArgs e)
   ...

Open in new window

 
But I cannot find out

get_Item

within the whole solution. Any advice?
0
 
HuaMin ChenSystem AnalystAuthor Commented:
How to locate the place, at which the error happens? Here is the full exception message

************** Exception Text **************
System.IndexOutOfRangeException: Cannot find column 3.
   at System.Data.DataColumnCollection.get_Item(Int32 index)
   at System.Data.DataRow.get_Item(Int32 columnIndex)
   at Manager.FrmReport.FrmReport_Load(Object sender, EventArgs e)
   at System.Windows.Forms.Form.OnLoad(EventArgs e)
   at System.Windows.Forms.Form.OnCreateControl()
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl()
   at System.Windows.Forms.Control.WmShowWindow(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ContainerControl.WndProc(Message& m)
   at System.Windows.Forms.Form.WmShowWindow(Message& m)
   at System.Windows.Forms.Form.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Open in new window

0
 
AndyAinscowFreelance programmer / ConsultantCommented:
Based on that error message - impossible.
As I said earlier, you need more information - and you should have that information already.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.