|
POST
|
Hi there, In Visual Studio 2013, Desktop 10.3, I created a standalone project for .Net Framework 3.5.(in VS: Project properties -> Application -> Target framework->3.5). When I run it I see in the list of processes it runs as .Net Framework v.2 Why? (may be because this project has references to another my companie's old dlls). How to change it to 3.5? Any help would be greatly appreciated.
... View more
10-25-2015
04:31 PM
|
0
|
1
|
2805
|
|
POST
|
Hi, I see the process of ArcCatalog as running with .Net Framework version 2. Why? Thank you.
... View more
10-25-2015
04:13 PM
|
0
|
0
|
2379
|
|
POST
|
Hi there, I need an explanation about the interface IWorkspaceFactoryStatus. I have an old project that I investigate an error (I described in another discussion). But what is the difference 1. (in my old project): IWorkspaceFactoryStatus pWorkspaceFactoryStatus = new ESRI.ArcGIS.DataSourcesGDB.SdeWorkspaceFactoryClass(); 2. ESRI example IWorkspaceFactoryStatus workspaceFactoryStatus = (IWorkspaceFactoryStatus)workspaceToCheck.WorkspaceFactory; I see that example here (see the link) IWorkspaceFactoryStatus Example I know about Activator and singleton, I need an explanation WHY the number one (1. (in real project)) works. 10.3, Desktop, .Net 3.5 Any help would be highly appreciated.
... View more
10-25-2015
04:00 PM
|
0
|
3
|
2735
|
|
POST
|
1a) After error message 2, each run of that method creates an additional connection to SDE as a result of that a "Maximum Number of Connections ..." error appears after some time (hours).
... View more
10-22-2015
08:29 PM
|
0
|
0
|
742
|
|
POST
|
Hi, there, I am investigating an error (could be one message from two possible messages in the log file) in this method - ConnectWorkspace(). 1) error message 1: "Unable to cast SdeWorkspaceFactoryClass to IWorkspaceFactoryStatus OR 2) error message 2: “The server threw an exception. (Exception from ... (RPC_E_SERVERFAULT))” It works in a windows service every minute. It seems to be failed after SDE compress. SDE compress executes every night. But the method fails every other week. Questions: 1) What line in the code below throws error message 2? 1a) After error message 2 each run of that method creates an additional connection to SDE as a result of that a "Maximum Number of Connections ..." error appears after some time (hours). 2) How you explain the code in the line: IWorkspaceFactoryStatus pWorkspaceFactoryStatus = new ESRI.ArcGIS.DataSourcesGDB.SdeWorkspaceFactoryClass(); I have no idea why it works and doesn't fail at the first time? 3) Could it be some how linked to memory leaks in the service (I see they exist. I use Red Gate ANTS Memory Profiler)? 4) How to reproduce that errors? I cannot reproduce it in a simple winform using classes from that winservice? Is there any difference how I run the method ConnectWorkspace() and how it runs in the service? Thanks for any ideas. /////////////////////////////////////////////////////////////////////////////////////////////////////////// private static bool ConnectWorkspace(ref IWorkspace pWorkspace) { try { if (pWorkspace == null) { //**This is when the application starts. pWorkspace = null; QAModFun.OpenSDEFromFile(mSDEFlNm, out pWorkspace); return true; } //**This will happen, after compress the connection is lost, hence the connection needs to be pinged, and //**when the status is 'UP' then opening the available connection, and the reconnecting. IWorkspaceFactoryStatus pWorkspaceFactoryStatus = new ESRI.ArcGIS.DataSourcesGDB.SdeWorkspaceFactoryClass(); IEnumWorkspaceStatus pEnumWorkspaceStatus = pWorkspaceFactoryStatus.WorkspaceStatus; IWorkspaceStatus pWorkspaceStatus = pEnumWorkspaceStatus.Next(); bool blnConnected = false; if (pWorkspaceStatus != null) { blnConnected = true; while (pWorkspaceStatus != null && blnConnected == true) { if (pWorkspaceStatus.ConnectionStatus != esriWorkspaceConnectionStatus.esriWCSUp) blnConnected = false; pWorkspaceStatus = pEnumWorkspaceStatus.Next(); } } if (blnConnected == false) { //**Ping the workspace and if 'UP' reconnect. pWorkspaceStatus = pWorkspaceFactoryStatus.PingWorkspaceStatus(pWorkspaceDef); if (pWorkspaceStatus.ConnectionStatus == esriWorkspaceConnectionStatus.esriWCSAvailable) { pWorkspaceDef = pWorkspaceFactoryStatus.OpenAvailableWorkspace(pWorkspaceStatus); pWorkspaceDef = null; QAModFun.OpenSDEFromFile(mSDEFlNm, out pWorkspaceDef); } } return true; } catch (Exception ex) { WriteToLogFile(ex); return false; } }
... View more
10-21-2015
10:57 PM
|
0
|
1
|
2822
|
|
POST
|
Thank you Freddie, Probably do you have an idea why execution of a procedure with this method blocks the table to which the procedure writes (meaning - I cannot read the table when procedure is executing)?
... View more
09-22-2015
05:53 PM
|
0
|
0
|
1004
|
|
POST
|
Thanks Freddie, Thank you for response. Good suggestion. Was this method asynchronous in previous versions? (before 10.3)
... View more
09-22-2015
04:39 PM
|
0
|
0
|
1004
|
|
POST
|
I try to run a stored procedure from C# with ArcObjects 10.3 in Visual Studio 2013 debug mode. pWorkspace.ExecuteSQL ("execute procedure procedure_name(paramater);"); When the procedure is executing(lets say 15 minutes) I CANNOT read the table that is updated in the procedure. But when I am running (lets say 15 minutes) the procedure from database (Informix) I CAN read the table updated in the procedure. What is the reason and how can I read the table when the procedure is executing?
... View more
09-21-2015
11:12 PM
|
0
|
0
|
2926
|
|
POST
|
Desktop 10.3 I cannot find in documentation an answer for that. And secondly, can I change that method to be synchronous/asynchronous? Any documentation link or idea? Was this method asynchronous in previous versions?
... View more
09-21-2015
05:31 PM
|
0
|
4
|
3410
|
|
POST
|
The Informix database driver is set to Default (There are also options like "Show uncommited" and others)
... View more
09-21-2015
04:12 PM
|
0
|
1
|
797
|
|
POST
|
Hi there, It is for 10.3 Desktop version and Informix database with versioning. The task is to validate some feature attribute which was updated by user. I should do it before SaveEdits (StopEditing(true/false)) with SQL in Informix data base. I need to clarify if the actual update is commited to database after StopEditOperation() was called from C# code. If yes, what table (feature class) is updated? I use multiversion view and cannot see it. What is the table with postfix "_mv"? Any help would be appreciated.
... View more
09-17-2015
06:49 PM
|
0
|
2
|
3295
|
|
POST
|
Hi Kirt, Thank you for your answer. I wish I were able to do it.
... View more
08-27-2015
07:35 PM
|
0
|
0
|
1026
|
|
POST
|
There is a SQL sentence that can give a result - one row in case the Field2 is the same for all features Field1=12345. - more than one row in case Field2 is different (SELECT * FROM sde_table_name WHERE:) /*this is a standard row (in ArcMap) that I couldn't change*/ objectid in (SELECT MAX(objectid) FROM sde_table_name WHERE Field1=12345 GROUP BY Field1,Field2) But unfortunatelly, the data type of Field2 is TEXT. That means I cannot do GROUP BY by this field. Any workaround?
... View more
08-27-2015
05:56 PM
|
0
|
2
|
1026
|
|
POST
|
Hi Mody, Thank you for your responce. Just I have the concrete requirements. Generally, the task is to check this case (a list of features contains features with same Field1 values and different Field2 values) with SQL sentence stored in a SDE table. In the table will be other SQL sentences to check other cases. The c# application should take this sentences and do some QA. I am triyng to model this SQL sentences in ArcMap (A bit weird I agree ). So, the question is how to accomplish the task in SQL sentence.
... View more
08-23-2015
10:50 PM
|
0
|
3
|
1026
|
|
POST
|
Hi there, I have two polygons with same value in the field Field1 (I know this value), and different values in field Field2. I need to know whether that list of polygons contains polygons with different values in field Field2. I do not need to know that values. I try to write WHERE in ArcMap -> Select by Attributes: (SELECT * FROM sde_table_name WHERE:) /*this is a standard row (in ArcMap) that I couldn't change*/ objectid IN (SELECT objectid FROM sde_table_name WHERE Field1=12345 group by objectid having count(distinct Field2) >1) This returns nothing, but I definitely have 2. Any help would be appreciated. It is for 10.3 version and Informix database.
... View more
08-23-2015
07:32 PM
|
0
|
5
|
3448
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 09-14-2017 10:40 PM | |
| 1 | 02-13-2019 05:03 PM | |
| 1 | 04-12-2017 09:41 PM | |
| 1 | 11-14-2017 06:00 PM | |
| 1 | 06-19-2017 10:52 PM |
| Online Status |
Offline
|
| Date Last Visited |
09-13-2021
09:41 PM
|