AE develop summary FAQ

Question: Arcgis10.0 component initialization failed
Solution: ESRI.ArcGIS.RuntimeManager.BindLicense (ESRI.ArcGIS.ProductCode.EngineOrDesktop); the statement need to refer to ESRI.ArcGIS.Version library


Q: No embedded interoperable class
Solution: embedding Interoperability class to false
in VS2010 in .NETFramework 4.0 use environment, the ESRI library embedded interoperability need to be set to False.


Add to axMapControl control error shp

Question: When you add shp to axMapControl control, there was "The specified path is invalid" error, double-check the code is not wrong; but you can add a Layer from a file, but ToolBarControl no display.
Workaround: Add axLicenseControl Controls


Problem:
Solution:
  // before clearing data set must be refreshed
   activeView.PartialRefresh (esriViewDrawPhase.esriViewGeoSelection, mapControl.get_Layer (0), null); mapControl.Map.ClearSelection ();       
  activeView.PartialRefresh (esriViewDrawPhase.esriViewGeoSelection, the MapControl. get_Layer (0), null);


Error space SDE database connection

SDE Certification Matters: ArcGIS.KeyGen.exe generate a epp file method: -> server -> All -> * .epp copy and save it as a file. Certification can load the file when the authentication is completed.

Examples of questions: must be such that: "sde: sqlserver: SHENC-PC \ SQLEXPRESS"

可选 pPS.SetProperty("AUTHENTICATION_MODE", "DBMS");

Not found ESRI.ArcGIS.Utility; references
  could not find a reference ESRI.ArcGIS.Utility, ESRI.ArcGIS.Utility.BaseClasses like ArcGIS10 environment, then ArcGIS9.2 Utility will gradually be discarded in favor of the ADF to instead the ESRI.ArcGIS.Utility and ESRI.ArcGIS.Utility.BaseClasses changed ESRI.ArcGIS.ADF, ESRI.ArcGIS.ADF.BaseClasses problem is solved.

Further, references to class 9.2 of ESRI.ArcGIS.ADF ADF and ESRI.ArcGIS.ADF.Connection. ESRI.ArcGIS.ADF.Local to 10.0 and in ESRI.ArcGIS.ADF.Connection.Local


Question: AxSybologyControl basis ArcGis installation path, comes with loads of information, reported "as an example of an error!"
     
Solution: // Microsoft.Win32.RegistryKey regKey = Microsoft.Win32.Registry.LocalMachine.OpenSubKey ( " SOFTWARE \ ESRI \ CoreRuntime" , to true);
      // read the CoreRuntime installation directory Desktop10.0
Microsoft.Win32.RegistryKey the Regkey = Microsoft.Win32.Registry.LocalMachine.OpenSubKey ( "SOFTWARE \ ESRI \ Desktop10.0", to true);


Question: CreateFeatureDataset () failure reported "no License" error
    featureDataset = featureWorkspace.CreateFeatureDataset (featureDSName, spatialReference) ;
Solution:
  Modify the properties directly in the license Control check extention of the selected item: spatial analyst or
before:
   esriLicenseStatus LicenseStatus = esriLicenseStatus.esriLicenseUnavailable;
= new new AoInitializeClass m_AoInitialize IAoInitialize ();
LicenseStatus = m_AoInitialize.Initialize (esriLicenseProductCode.esriLicenseProductCodeArcInfo);
LicenseStatus = m_AoInitialize.CheckOutExtension (esriLicenseExtensionCode.esriLicenseExtensionCodeSpatialAnalyst);

Question: After the window layers of nested SplitContainer, appear inside the innermost layer SplitContainer TocControl controls can not display problem
solution:
finished loading after mxd offspring plus axTOCControl1.SetBuddyControl (axMapControl1) can be solved. However, if you want to load mxd many places, the need to add each place. The best way is to place the code in the beginning performed plus.


Question: feature.Delete (), a call to a COM component returned an error HRESULT E_FAIL
Solution: The featureCursor = featureclass.Search (null, true) ; // shared memory
      into featureCursor = featureClass.Search (null, false) ; // do not share memory

// clear the layer of the original physical object
// FeatureCursor = featureClass.Search (null, to true);
FeatureCursor = featureClass.Search (null, false); // do not share memory
IFeature the Feature;
the Feature = FeatureCursor. NextFeature ();
the while (Feature = null!)
{
feature.Delete ();
//featureCursor.DeleteFeature ();
Feature featureCursor.NextFeature = ();
}


Question: featureBuffer.Shape = geometry; Times "No support for this geometry type" error
Solution: Look FeatureClass in geometry type is identical to the geometry of the geometry type.


9.x in ESRI.ArcGIS.Display.tagRECT changed ESRI.ArcGIS.esriSystem.tagRECT in the 10.x


In the 64-bit operating system is required in the project build options, select the Target CPU is x86?


IMap.ClipGeometry in 10.x the need to combine IMapClipOptions interface with?


问题:You are not licensed for ArcInfo

  Use the ArcGIS Administrator to view the software availability,change the license manager,or switch the ArcGIS software product.
  

  Solution: 1, try: solutions start ArcGIS License Manager service (). If no
         2, used to generate a License ArcGIS.KeyGen.exe, covering service.txt content, and modifications and refresh the lincense Adiministrator. . To localhost


Unauthenticated problem: the application is not licensed to perform this operation
Solution:

Method a: see whether ESRI.ArcGIS.RuntimeManager.Bind (ESRI.ArcGIS.ProductCode.EngineOrDesktop);

Written in the wrong: ESRI.ArcGIS.RuntimeManager.BindLincense (ESRI.ArcGIS.ProductCode.EngineOrDesktop);
  Method 2: LicenseControl control is initialized to a second term: geodatabase

Guess you like

Origin www.cnblogs.com/King2019Blog/p/11319710.html