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

mari
 
on Mar 22, 2016 04:05 AM
4974 Views

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?

Download FREE API for Word, Excel and PDF in ASP.Net: Download
Shashikant
 
on Mar 22, 2016 04:38 AM

Hi,

You can Simply Check if file exists using below code.

C#

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

}
else
{
}