vs2015
“System.ArgumentException”类型的未经处理的异常在 mscorlib.dll 中发生
其他信息: 没有注册类
using ESRI.ArcGIS.Carto;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace DesktopWindowsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
IRasterLayer lyr = axMapControl1.get_Layer(0) as IRasterLayer;//问题代码
int bandcount = lyr.BandCount;
MessageBox.Show(bandcount.ToString());
}
}
}
“System.ArgumentException”类型的未经处理的异常在 mscorlib.dll 中发生
其他信息: 没有注册类