POST
|
The error message is "unable to open the database file". The weird thing is that sometimes it works and the feature gets updated successfully. I don't really know what's causing this issue. here is the code : try { TemplatePicker tp = context.getTemplatePicker(); MapView map = context.getMapView(); GeodatabaseFeature g = ((GeodatabaseFeatureTable) ((FeatureLayer) map.getLayerByID(tp.getSelectedLayer().getID())).getFeatureTable()).createFeatureWithTemplate(tp.getselectedTemplate(), geometryBeingEdited); Symbol symbol = ((FeatureLayer) map .getLayerByID(tp .getSelectedLayer().getID())).getRenderer() .getSymbol(g); addedGraphic = new Graphic(geometryBeingEdited, symbol, g.getAttributes()); updatedfeatureId = ((FeatureLayer) map.getLayerByID(tp.getSelectedLayer().getID())).getFeatureTable().addFeature(addedGraphic); } catch (TableException e) { e.printStackTrace(); }
... View more
06-21-2016
09:14 AM
|
0
|
1
|
210
|
POST
|
I am trying to update an existing feature and it's giving this error here is the code. selectedFeatureLayer.getFeatureTable().updateFeature(selectedFeature.getId(), feature);
... View more
06-20-2016
02:57 PM
|
0
|
3
|
2607
|
POST
|
Hi, I am trying to do something similar to what you've done. Can you share your callout code please?
... View more
04-25-2012
12:10 AM
|
0
|
0
|
418
|
POST
|
hi Roy, Add this in the beginning of your code ESRI.ArcGIS.RuntimeManager.Bind(ESRI.ArcGIS.ProductCode.Server); if the problem persists, right click on the your project =>properties =>Build tab =>change platform target to x86 instead of Any CPU.
... View more
09-20-2011
01:00 PM
|
0
|
0
|
151
|
POST
|
Hi guys, I solved the problem. Thank you all for helping. This problem was that the "Enable 32-Bit Applications" in the application pool settings was false. After changing that to true, everything is working fine.
... View more
09-01-2011
06:25 AM
|
0
|
0
|
493
|
POST
|
This is the error message fiddler reported " Could not load file or assembly 'ESRI.ArcGIS.Version. 10.0.0.0 Culture=netural, PublicKeyToken = ..... or its dependencies. The system cannot find the file specified."
... View more
08-24-2011
11:42 AM
|
0
|
0
|
493
|
POST
|
Yes I did but there was nothing there. I even used fiddler but all the i got was "server error with error code of 500"
... View more
08-24-2011
08:49 AM
|
0
|
0
|
493
|
POST
|
Hi wei, thanks for the reply. Yes, I have installed Arcobject SDK on the server.
... View more
08-24-2011
08:13 AM
|
0
|
0
|
493
|
POST
|
I don't really understand what you're trying to do..sorry. But i would suggest that if you have featurelayer, you can access its fields through layerinfo property.
... View more
08-24-2011
07:12 AM
|
0
|
0
|
166
|
POST
|
Copy and paste the gp service url into your browser and tell us what you get. like this: http://servername/arcgis/services/foldername/GPServer/toolName?wsdl
... View more
08-24-2011
06:54 AM
|
0
|
0
|
128
|
POST
|
Hi guys, Here is my problem: I have a very basic wcf service that returns information about a feature class in my silverlight application. Everything works great in the localhost but doesn't work after publishing the application to my server. It just keeps running without throwing any error or timing out. The funny thing is that if i remove all arcobject stuff from the service code, then it works fine. Am I missing something? here is my code. ESRI.ArcGIS.RuntimeManager.Bind(ESRI.ArcGIS.ProductCode.Server); //Initialize ESRI license ESRI.ArcGIS.esriSystem.IAoInitialize aoIinitialize = new ESRI.ArcGIS.esriSystem.AoInitialize(); if (aoIinitialize.Initialize(esriLicenseProductCode.esriLicenseProductCodeArcServer) == esriLicenseStatus.esriLicenseAvailable) { aoIinitialize.Initialize(esriLicenseProductCode.esriLicenseProductCodeArcServer); } IPropertySet propertySet = new PropertySet(); propertySet.SetProperty("SERVER", "**"); propertySet.SetProperty("INSTANCE", "***"); propertySet.SetProperty("DATABASE", "***"); propertySet.SetProperty("USER", "***"); propertySet.SetProperty("PASSWORD", "****"); propertySet.SetProperty("VERSION", "***"); Type factoryType = Type.GetTypeFromProgID("esriDataSourcesGDB.SdeWorkspaceFactory"); IWorkspaceFactory workspaceFactory = (IWorkspaceFactory)Activator.CreateInstance(factoryType); //Establish the connection with the database server IWorkspace workspace = workspaceFactory.Open(propertySet, 0); //Convert the workspace to feature workspace IFeatureWorkspace featureWorkspace = (IFeatureWorkspace)workspace; //Open feature class in the database featureClass = featureWorkspace.OpenFeatureClass(FCName);
... View more
08-24-2011
06:48 AM
|
0
|
12
|
1412
|
POST
|
set the proxy on ArcGISTileMapServicelayer in xaml. I did this in silverlight so I don't know if works for WPF but you can try. eg ProxyUrl = "http://domain/proxy.ashx"
... View more
05-02-2011
06:12 PM
|
0
|
0
|
115
|
POST
|
Hi gilest, I am currently doing that but my boss asked me to create a class that we can use to actually project lat/lon to state plane....actual geodesy calculations...lol. I know about geometry service but he(my boss) wants me to write our own. Thank you though
... View more
04-06-2011
12:08 PM
|
0
|
0
|
267
|
POST
|
I am trying to write my own projection service that will project data from geographic coordinates to state plane. I've got some help from some geodesy websites but that's not enough for me. If you know any other resource, please let me know. Thanks
... View more
04-06-2011
05:13 AM
|
0
|
5
|
685
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|