POST
|
I solved it. The problem was a brocken config-file (user.config) in the user-account (C:\Users\<user>\AppData\Local\ESRI\DefaultDomain_Path_...\<Version Number>).
... View more
07-07-2015
03:03 AM
|
1
|
0
|
202
|
POST
|
A Customer of mine has a Problem with my in vb.net developed extension in ArcMap. The extension is installed on a Windows 8.1 with ArcMap 10.3. First it worked fine, but now (since one week) there comes an error from the 'System.Transactions.Diagnostics.DiagnosticTrace' when the extension try to connect via oledb with an access db (personal geodatabase). The strange thing is, that the stand alone app (without ArcMap) has no problems to connect (and it uses the same oledb object). Does anyone have a clou what can cause the problem? thanks a lot.
... View more
06-30-2015
02:14 AM
|
0
|
1
|
2861
|
POST
|
Thanks again Neil for your help. Unfortunately using the Activator for the connection has no effect. So i gues i have to think about my shared connection, but that would be a bigger thing. I tried also to open the Style Reference Dialog via Code, but i cant find the way to close it again via code. Do you have a hint for that? 'open the StyleReferencesDialog: Dim styleGallery As IStyleGallery styleGallery = pDoc.StyleGallery Dim styleReferencesDialog As ESRI.ArcGIS.DisplayUI.IStyleDialog = New ESRI.ArcGIS.DisplayUI.StyleReferencesDialogClass() styleReferencesDialog.DoModal(styleGallery, pApp.hWnd) 'how to close it (with the ok button) via code?
... View more
12-08-2011
01:50 AM
|
0
|
0
|
275
|
POST
|
The Problems with the referenced styles appear when i open ArcMap (via arcmap.exe) and then connect to my Personal Geodatabase (in which i use a public shared variable for the connection) via code and load FeatureClasses into ArcMap. The Problem disappear when i open the StyleReferences Manager (from the property From of a Layer or form the Style Manager (Menu)) and do nothing then click ok to close it again. Hope i made my problem clear. Thanks for your help.
... View more
12-06-2011
04:59 AM
|
0
|
0
|
1992
|
POST
|
Hello Rich, i tried both, projected and geografic, but there is no difference, same behaviour.
... View more
12-05-2011
11:53 PM
|
0
|
0
|
1992
|
POST
|
Thanks Neil for your reply. Well the thing is, that i dont have a problem if i open ArcMap through code (see comment 2). The Symbols are only not shown, when i open ArcMap and then connect to my PersonalGeodatabase with my public shared connection variable.
... View more
11-30-2011
12:10 AM
|
0
|
0
|
1992
|
POST
|
So, now i localized the problem: For my pGDB-Connection i use a public shared variable and this seems to be a problem for ArcGIS and the Style References. If i set the connection to nothing after loading the FeatureClasses, the symbols are loaded in the style references. So the question is, why isnt it a problem if i load a mxd, because there i also use the public shared variable for the connection, but the symbols are shown in the style references. And how can i solve this thing? Any help would be great!
... View more
10-27-2011
01:25 AM
|
0
|
0
|
1992
|
POST
|
The Problem seems to be, when i connect to my Personal Geodatabase. Code for that: Private Function openAccessWorkspace(ByVal connString As String) As IFeatureWorkspace 'Access workspace öffnen Dim pWS As IWorkspace2 Dim pWorkspaceFactory As IWorkspaceFactory2 openAccessWorkspace = Nothing Try pWorkspaceFactory = New AccessWorkspaceFactory pWS = pWorkspaceFactory.OpenFromFile(connString, 0) openAccessWorkspace = pWS Catch ex As Exception MsgBox(ex.Message, MsgBoxStyle.Information, "openAccessWorkspace") End Try End Function After the connection i do load any FeatureClass per code from the workspace and there are again no symbols in the style references. I really dont have a clue where's my mistake! I already did an update for my PGDB to ArcGIS 10, but no change.
... View more
10-26-2011
06:04 AM
|
0
|
0
|
1992
|
POST
|
Ok, here are some more hints: It seems not to be the thing that i load a QueryDef, the Problem also appears when i load a normal FeatureClass (IFeatureWorkspace.OpenFeatureClass) per Code. Another thing: when i open arcmap by code (pDoc = new ESRI.ArcGIS.ArcMapUI.MxDocument; pApp = pDoc.Parent; pApp.Visible = True) and then point to the CommandItem and run the OnClick Event (where the FeatureClass are loaded) everything acts normal.
... View more
10-25-2011
07:35 AM
|
0
|
0
|
1992
|
POST
|
Hello, after loading a QueryDef FeatureClass per Code (with IFeatureWorkspace.CreateQueryDef and .OpenFeatureQuery) and open the Layer Properties and the Tab Symbology, there are no Symbols loaded in the Symbol Selector if i wont to change the Style of my used Symbol, even there are some Style References by default (ESRI). The solution at the moment is to open the Style References check any of the Style Refernce and click ok. After that there are the default Style References loaded. Does someone has the same expirience with loaded QueryDef FeatureClasses? Back in ArcGIS 9.3 everything worked fine. Now with ArcGIS 10 SP 1 i have this strange behavior. Is there a differnt way now with ArcGIS 10 to load just a part of a FeatureClass then using CreateQueryDef? Thanks in advance. Karin
... View more
10-07-2011
06:41 AM
|
0
|
12
|
8030
|
POST
|
I tried to add a new record in ArcMap during a Editsession to the Table, and I also get the error, that there must be a related ObjectId in the related FC, even if i take an ObjectId which is in both of the tables. So i guess ArcMap has a problem with relation done in ACCESS?! This doesen't sound very nice. Is this a known constraint in ArcMap or a bug? Thanks a lot for your time and help!
... View more
03-10-2011
09:29 AM
|
0
|
0
|
300
|
POST
|
Dear Neil, I have attachet the PGDB. You could try it with the table 'w_Lnk_FLS_TS'. This table has a relation to the FC 'w_Dat_Teilschlag' (Id_Teilschlag - ObjectId) and a relation to the FC 'w_Dat_Flurstueck' (Id_Flurstueck - ObjectId). Tank you for your great help!
... View more
03-09-2011
09:32 AM
|
0
|
0
|
300
|
POST
|
Well, I tried it like you and put the Table (which comes from a PGDB) into the map and make the reference to the table from the standalonetablecollection. Same result --> the HRESULT E_FAIL. Have you tried it with a table which has relations to other tables or featureclasses?
... View more
03-08-2011
08:34 AM
|
0
|
0
|
300
|
POST
|
Unfortunately i always get the "Error HRESULT E_FAIL has been returned from a call to a COM component" if i put the reference for the Cursor inside of the Editsession. Even if i dont use the Undo/Redo function and the EditOperation. Can this be a bug in ArcMap, or is the curser just not made for tables with relationships? Or am i doing something wrong? I tried it with get the reference to the table also inside the editsession and one time oustside of the editsession, same result.
... View more
03-03-2011
10:38 PM
|
0
|
0
|
853
|
POST
|
Thanks again. But this is exactly the problem i have: i can not get a reference to the cursor inside the editoperation, because then i get the HRESULT E_FAIL error message (second post). As it looks the error is thrown because the Table in which the row should be inserted, has some relationsships that are not from the ObjectId of the Table to another Table. If I delete those relationships sometimes (not in every case) the reference inside of the editoperation is working. But this would be a big change in my Database and also in the code. So i really hope there is a different way getting this work.
... View more
03-03-2011
05:05 AM
|
0
|
0
|
853
|
Title | Kudos | Posted |
---|---|---|
1 | 07-07-2015 03:03 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|