This code used to work...
if (File.Exists(@"C:\Roads.shp"))
{
mapControl.AddShapeFile(@"C:\", "Roads.shp");
}
I have Roads.shp on the C:\ drive
I also have Roads dot {sbn, sbx, shp.gcd, shp.xml, shx} in the same place, c:\
The program throws an "The specified filename is invalid" exception with no Inner Exception. Could it be related to installing ArcEngine 10 SP1? That's the only thing I can think of... Really appreciate any ideas, thanks in advance.
Using ArcEngine 10 with SP1 with C# VS2010
I guess I was making a Noob mistake it looks like I forgot to copy Roads.dbf to the target directory.
Too bad the error message isn't slightly more helpful.