m_NAContext.Solver.Solve(m_NAContext, gpMessages, null)程序出错,报错提示:System.Runtime.InteropServices.COMException.The operation failed because no network analyst license is present.
解决办法如下:
Step 1: 右击axLicenseControl,选择Properties属性;
Step 2:在属性中勾选Network Analyst。
问题完美得到解决!~~