We help IT Professionals succeed at work.

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
Comment
Watch Question

AndyAinscowFreelance programmer / Consultant

Commented:
>>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.
HuaMin ChenProblem resolver

Author

Commented:
Regarding the error shown in above, how to further trace the project, which part is causing the error?
AndyAinscowFreelance programmer / Consultant

Commented:
Well, where do you supply that path ?
HuaMin ChenProblem resolver

Author

Commented:
Sorry, only the currently attached one is showing the relevant error.
tt1.png
AndyAinscowFreelance programmer / Consultant

Commented:
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?
HuaMin ChenProblem resolver

Author

Commented:
I have the relevant source of the project.
HuaMin ChenProblem resolver

Author

Commented:
It is under my control. How to locate the reason of the problem?
AndyAinscowFreelance programmer / Consultant

Commented:
Somewhere you supply that path shown in your first screenshot.  Search for that path in the project.
AndyAinscowFreelance programmer / Consultant

Commented:
Also - use Windows File Explorer to check the path and files on your PC
HuaMin ChenProblem resolver

Author

Commented:
Only the current screenshot is involved, to the error message. Please leave the 1st screenshot originally attached.
HuaMin ChenProblem resolver

Author

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?
Freelance programmer / Consultant
Commented:
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.
HuaMin ChenProblem resolver

Author

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

AndyAinscowFreelance programmer / Consultant

Commented:
Based on that error message - impossible.
As I said earlier, you need more information - and you should have that information already.