Select to view content in your preferred language

adding layer from File  !

1025
3
01-06-2012 08:11 AM
mehdikylar
New Contributor
Hi !
SO  i want to add a  feature layer with local Url ! i-e: Url="File//......../layer.lyr" or something like that . i created a layer in ArcMap and i want to use it in a silverlight app !
when trying that it did'nt work ! 

<esri:FeatureLayer ID="MyFeatureLayer" 
                    Url="file://C/Users/mehdi/Desktop/hopital.lyr" />

can anyone help me Please !
0 Kudos
3 Replies
JenniferNery
Esri Regular Contributor
You need to publish this as feature service first before you could use the REST end point as Url. http://help.arcgis.com/en/arcgisserver/10.0/help/arcgis_server_dotnet_help/index.html#/Publishing_fe...
0 Kudos
mehdikylar
New Contributor
is it mandatory in my case to use arcGis server ?  even i want to creat a monopost app ?
0 Kudos
DominiqueBroux
Esri Frequent Contributor
is it mandatory in my case to use arcGis server ? even i want to creat a monopost app ?


At this time, ArcGIS server is mandatory.
The upcoming ArcGIS Runtime SDK will provide access to local resources. This product is a part of ArcGIS 10.1 that is in beta (see https://betacommunity.esri.com/)
0 Kudos