Dear Gurus!
How to use arcgis server from the winForms application?
May be as follows ArcObjects API Reference for ArcGIS Engine or there exist other way?
Sorry, I forgot
ESRI.ArcGIS.RuntimeManager.Bind(ESRI.ArcGIS.ProductCode.EngineOrDesktop);
An error has disappeared
I have the project , which I wrote 5 yeas ago. The program are on the server and clients run it after enter the server via tsclient. Now I I have arcgis for server and use it from wpf and silverlight project. I want to rewrite my winForms project. In xaml of silverlight project
<esri:Map x:Name="myMap" Background="White" WrapAround="true" Extent="3200000,8500000,4250000,10130000" MouseClick="Map_MouseClick" > <esri:OpenStreetMapLayer ID="OSMLayer" Style="Mapnik" /> <esri:ArcGISDynamicMapServiceLayer ID="Karelia" Url="http://myserver:6080/ArcGIS/rest/services/karelia/MapServer" /> <esri:FeatureLayer ID="routes_osm" Url="http://myserver:6080/ArcGIS/rest/services/karelia/MapServer/1" MouseEnter="FeatureLayer_MouseEnter_1"> </esri:FeatureLayer> <esri:FeatureLayer ID="bridges" Visible="False" Url="http://myserver:6080/ArcGIS/rest/services/karelia/MapServer/2" MouseEnter="FeatureLayer_MouseEnter" > </esri:FeatureLayer>
</esri:Map>
So it's needed to to use some feature layers, to draw some objects , to solve geometry tasks and so on. Also need to use OSM layer.
Now I try to use connection factory
IAGSServerConnectionFactory AGSConnectionFactory = new AGSServerConnectionFactory();
but get an error message -
"The required class is missing in ClassFactory".
Could you explain in more detail what you're needing to accomplish? What is it that you're needing to do with the server.
It's easy to use mapControl in arcObjects and map control in "http://schemas.esri.com/arcgis/client/2009" namespace (wpf, silverlight)
<esri:Map x:Name="myMap" Background="White" WrapAround="true" Extent="3200000,8500000,4250000,10130000" MouseClick="Map_MouseClick" > <esri:OpenStreetMapLayer ID="OSMLayer" Style="Mapnik" /> </esri:Map>
Can't anybody show how to solve simililar problems (with code example) in winForms or some reference would be nice?
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.