vb.net - Access to the path "......." is denied? -
i have windows form application loads datagridview. in 1 of columns hyperlinks image files. when these links clicked code shown below runs open image. however, have new user on system has issues viewing of images.
at first found user did not have access 1 of subfolders in image path. after corrected, user can access full image path , view images through windows explorer.
however, when running application , clicking hyperlinks, user receiving:
error: access path '\\server\folder1\folder2\folder3\image.tif' denied. in procedure: fqimagingfiltereddatagridview_cellclick
any ideas going on? user has full rights directory, individual rights, , can view images through windows explorer, application still treats user denied.
here code:
private sub fqimagingfiltereddatagridview_cellclick(byval sender object, byval e system.windows.forms.datagridviewcelleventargs) handles fqimagingfiltereddatagridview.cellclick try if e.rowindex = -1 exit sub if e.columnindex <> 0 exit sub dim imagefile string = fqimagingfiltereddatagridview.currentrow.cells("filepath").value.tostring & "\" & fqimagingfiltereddatagridview.currentrow.cells("filename").value.tostring if not io.file.exists(imagefile) msgbox("image file not found - unable display!", msgboxstyle.information, "attention!") exit sub end if ' pass memory stream version of image imageform dim displayimage image = loadmemoryimage(imagefile) if not isnothing(displayimage) using imagedisplayform new imageform(displayimage, imagefile, true) imagedisplayform .text = imagefile.substring(instrrev(imagefile, "\")) .showdialog() end end using end if catch ex exception msgbox("error: " + ex.message + " in procedure: " + miscellaneous.invokedby(), msgboxstyle.information, me.text) end try end sub
any assistance appreciated.
Comments
Post a Comment