Support Center

LoadFromDir could not find the file

Hemant Patel May 30, 2011 06:45AM EDT

When application call loadfromdir in windows vista home premium it is giving error as following

Could not find file '\\QS-ASRV\Digi\allscan\416 FOR8 05302011 —ererer —1—-1.jpg'.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileInfo.get_Length()
at DTI.ImageMan.Winforms.ThumbNailViewer.DrawThumb(ThumbNail Thumb, Int32 xPos, Int32 yPos, Graphics surface)
at DTI.ImageMan.Winforms.ThumbNailViewer.OnPaint(PaintEventArgs pe)
at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
at System.Windows.Forms.Control.WmPaint(Message& m)
at System.Windows.Forms.Control.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)

2 Data Techniques Responses and 1 Community Responses

Up 0 Rated Down
DTI Support  Data Techniques Employee May 30, 2011 10:58AM EDT

Hello,
Is this a network path or a local path ?
Make sure the user has read permissions for this directory.

For some reason we are getting an exception from the .Net FileInfo class that we use to get details about the file. It would seem that either the path is invalid or its a permissions issue.

Sean
DTI Support

Up 0 Rated Down
Hemant Patel  Data Techniques Employee May 30, 2011 11:40PM EDT

that is network path and that has full permission as Everyone has full control over the shared directory.
that is not the permission issue.

Can you guide me in other way, why we are facing this problem.

Up 1 Rated Down
DTI Support  Data Techniques Employee May 31, 2011 11:38AM EDT

Hello,

Can you confirm that a file by that name exists at that path ?

Does your application work if you load a local directory ?

Thanks,
John

This question is closed to new answers.

Contact Us