这个错误时怎么回事? 未处理COMException The specified filename is invalid ⼀⼀C# ArcGIS Engine 开发

2025-01-07 06:46:00
推荐回答(2个)
回答1:

private void Form1_Load(object sender, EventArgs e)
{
string path = @"D:\gis_ex09\ex01";
string fileName = @"sheng.shp";
axMapControl1.AddShapeFile(path, fileName); //就这行错的错误
axMapControl1.Extent = axMapControl1.FullExtent;
}

这样试试呢

回答2:

好好看一下路径是否正确???