string[] files = Directory.GetFiles(@"D:\LeadImage\Pending\", "*.jpg", SearchOption.AllDirectories);
in your case you are looking for files in folder
'C:\Program Files\Common Files\Microsoft Shared\DevServer\10.0\LeadImage\Pending'
Is it right?
and you can use symbol @ before string row. This provide you string like
"D:\sdfs\sdfsd"
also you can check does current folder Exist:
if (Directory.Exist(@"d:\Myimage\"))
{
}