POST
|
Right-click on the image in visual studio solution, which you selected to display on AddIn button. Go to 'Properties' option -> Under 'Advanced' section -> 'Build Action' and select 'AddInContent' from the drop-down list. Save the changes -> rebuild solution -> Run, image should be displayed on the AddIn button.
... View more
01-16-2019
10:34 AM
|
0
|
0
|
376
|
POST
|
This is a console application using C# and ArcObject to update a feature class. I updated start of this forum and IIS should not do anything with issue. I was able to catch this exception on below line of code. //start an insert cursor running on the featuretable m_fcsTarget= m_fclTarget.Insert(true); But, not able to understand; why behaviour is not consistent? Below function have this line of code. public EditUtility(IFeatureClass TargetFeatureClass, Boolean DeleteExistingRecords) { //set the target feature class property m_fclTarget = TargetFeatureClass; //start an edit session IDataset dstTarget; dstTarget = ( FeatureClass)m_fclTarget; IWorkspace workspace = dstTarget.Workspace; //Cast for an IWorkspaceEdit m_wseTarget = ( IWorkspaceEdit)workspace; m_wseTarget.StartEditing( true); m_wseTarget.StartEditOperation(); //delete existing records if requested if (DeleteExistingRecords == true) { //use a table interface to delete all rows ITable tblTarget; tblTarget = ( ITable)dstTarget; tblTarget.DeleteSearchedRows( null); } //start an insert cursor running on the feature table m_fcsTarget = m_fclTarget.Insert( true); }
... View more
10-12-2011
09:53 AM
|
0
|
0
|
304
|
POST
|
I have a c# script developed to update feature class. This script sometimes runs fine and sometimes throws below exceptionon. The error comes at a function call of IFeatureClass 'Insert' method. Error: The object invoked has disconnected from its clients. (Exception from HRESULT: 0x80010108 (RPC_E_DISCONNECTED)) How to get rid of this exception? Please share a fix/root cause or suggest/provide a resolution.
... View more
10-12-2011
08:49 AM
|
0
|
0
|
304
|
POST
|
I have a c# script developed to update feature class. This script always runs fine on one server and not always - but most of the times throws below error on other server. The error comes at a function call of IFeatureClass 'Insert' method. Error: The object invoked has disconnected from its clients. (Exception from HRESULT: 0x80010108 (RPC_E_DISCONNECTED)) I only see one difference in servers, that one has IIS and other does not. But, IIS is not required for this script; because the script is a console application. Scripts runs OK on a server with IIS and fails sometimes on server without IIS. Please share a fix or suggest/provide a solution.
... View more
10-05-2011
10:47 AM
|
0
|
3
|
3609
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|