Home > Enterprise >  For help, AE10.2 fail to load on VS10.2 MXD map, complains
For help, AE10.2 fail to load on VS10.2 MXD map, complains

Time:09-18



 private void Form1_Load (object sender, EventArgs e) 
{
String FilePath.
OpenFileDialog openFileDialog1=new OpenFileDialog ();
OpenFileDialog1. Title="please open the map document";
OpenFileDialog1. Filter="Map Documents (*. MXD) | *. MXD";
OpenFileDialog1. ShowDialog ();
FilePath=openFileDialog1. FileName;
If (axMapControl1 CheckMxFile (FilePath)==true)
{
AxMapControl1. LoadMxFile (FilePath);
}
The else
{
Wrong MessageBox. Show (" select ");
}
}




"System. Reflection. TargetInvocationException" type of untreated abnormalities in mscorlib.
in the DLL
Other information: the goal of call exception happens,

CodePudding user response:


Would such an error