Could not find file C:Program FilesMicrosoft Visual Studio 9.0Common7IDEindex.jpg.

Last Reply on Mar 22, 2016 04:38 AM By Shashikant

Posted on Mar 22, 2016 04:05 AM

when i download the webpage with images, it is showing the following error,

 Could not find file 'C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\index.jpg'. in vb.net

 

How to resolve it?

You are viewing reply posted by: Shashikant on Mar 22, 2016 04:38 AM.
Posted on Mar 22, 2016 04:38 AM

Hi,

You can Simply Check if file exists using below code.

C#

if (File.Exists("FilePath"))
{

}
else
{
}