<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Feature Layer Service cannot be created in code behind .net 10.2.3b in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/feature-layer-service-cannot-be-created-in-code/m-p/292511#M3428</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Updated following additional investigation...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry to hear you are unable to log into the beta community site - as far as i can tell both your logins are still active - perhaps you could try reapplying? &lt;A href="https://betacommunity.esri.com/callout/?callid=66FC13F3AF5A4CA9B45D82726393BFF6" title="https://betacommunity.esri.com/callout/?callid=66FC13F3AF5A4CA9B45D82726393BFF6"&gt;ArcGIS Runtime SDK 10.2.3 for .NET&lt;/A&gt;&lt;SPAN&gt;. If you are still having trouble logging in - please feel free to contact me directly (&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:mbranscomb@esri.com"&gt;mbranscomb@esri.com&lt;/A&gt;&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding the problem you are experiencing creating a GeodatabaseFeatureServiceTable and FeatureLayer - I believe it is simply a mismatch between the spatial reference or your basemap and of the feature service. I can reproduce the issue using the same service in the sample on SampleServer3 and for another service on the same server which is also in WGS1984. However, an equivalent service on SampleServer6 in Web Mercator works ok e.g. &lt;A href="https://sampleserver6.arcgisonline.com/arcgis/rest/services/Wildfire/FeatureServer/0" title="https://sampleserver6.arcgisonline.com/arcgis/rest/services/Wildfire/FeatureServer/0"&gt;Layer: Wildfire Response Points (ID: 0)&lt;/A&gt;‌. You should set the SpatialReference in which you would like the feature service table using the optional overload on Open Async:&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;PRE __default_attr="c#" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14055230060571224 jive_text_macro" jivemacro_uid="_14055230060571224"&gt;
&lt;P&gt;var gdbFeatureServiceTable = await GeodatabaseFeatureServiceTable.OpenAsync(&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; new Uri("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Fire/Sheep/FeatureServer/0" rel="nofollow" target="_blank"&gt;http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Fire/Sheep/FeatureServer/0&lt;/A&gt;&lt;SPAN&gt;"), "", SpatialReferences.WebMercator);&lt;/SPAN&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, the same approach does not work for the earthquakes service, therefore there may be a separate issue here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Jul 2014 14:28:09 GMT</pubDate>
    <dc:creator>MichaelBranscomb</dc:creator>
    <dc:date>2014-07-16T14:28:09Z</dc:date>
    <item>
      <title>Feature Layer Service cannot be created in code behind .net 10.2.3b</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/feature-layer-service-cannot-be-created-in-code/m-p/292510#M3427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can create just fine on the XAML side but when creating from the backend see nothing and things like the extent, and some info has values but some still reporting null???&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if you use the .net 10.2.3b example from github samples you can easily recreate the issue by running and from the menu bar select&lt;/P&gt;&lt;P&gt;Layers &amp;gt; FeatureLayers &amp;gt; Feature Layer From Service&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;also go in ArcGISRuntimeSDKDotNet_DesktopSample.Samples.FeatureLayerFromService.xaml.cs and under ctor uncomment the&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #dcdcdc; font-size: 10pt; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #608b4e; font-size: 10pt; font-family: Consolas;"&gt;// Note: code to create feature layer from a feature service&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #608b4e; font-family: Consolas; font-size: 10pt;"&gt;var task = createfeatureLayer();&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #608b4e; font-family: Consolas; font-size: 10pt;"&gt;p.s. I realize that there is the beta page for this but will not let me log in any more???? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #608b4e; font-family: Consolas; font-size: 10pt;"&gt;p.s.s Also cannot change color of my text from your site???&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jul 2014 00:49:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/feature-layer-service-cannot-be-created-in-code/m-p/292510#M3427</guid>
      <dc:creator>BrianLocke</dc:creator>
      <dc:date>2014-07-15T00:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer Service cannot be created in code behind .net 10.2.3b</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/feature-layer-service-cannot-be-created-in-code/m-p/292511#M3428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Updated following additional investigation...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry to hear you are unable to log into the beta community site - as far as i can tell both your logins are still active - perhaps you could try reapplying? &lt;A href="https://betacommunity.esri.com/callout/?callid=66FC13F3AF5A4CA9B45D82726393BFF6" title="https://betacommunity.esri.com/callout/?callid=66FC13F3AF5A4CA9B45D82726393BFF6"&gt;ArcGIS Runtime SDK 10.2.3 for .NET&lt;/A&gt;&lt;SPAN&gt;. If you are still having trouble logging in - please feel free to contact me directly (&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:mbranscomb@esri.com"&gt;mbranscomb@esri.com&lt;/A&gt;&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding the problem you are experiencing creating a GeodatabaseFeatureServiceTable and FeatureLayer - I believe it is simply a mismatch between the spatial reference or your basemap and of the feature service. I can reproduce the issue using the same service in the sample on SampleServer3 and for another service on the same server which is also in WGS1984. However, an equivalent service on SampleServer6 in Web Mercator works ok e.g. &lt;A href="https://sampleserver6.arcgisonline.com/arcgis/rest/services/Wildfire/FeatureServer/0" title="https://sampleserver6.arcgisonline.com/arcgis/rest/services/Wildfire/FeatureServer/0"&gt;Layer: Wildfire Response Points (ID: 0)&lt;/A&gt;‌. You should set the SpatialReference in which you would like the feature service table using the optional overload on Open Async:&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;PRE __default_attr="c#" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14055230060571224 jive_text_macro" jivemacro_uid="_14055230060571224"&gt;
&lt;P&gt;var gdbFeatureServiceTable = await GeodatabaseFeatureServiceTable.OpenAsync(&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; new Uri("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Fire/Sheep/FeatureServer/0" rel="nofollow" target="_blank"&gt;http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Fire/Sheep/FeatureServer/0&lt;/A&gt;&lt;SPAN&gt;"), "", SpatialReferences.WebMercator);&lt;/SPAN&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, the same approach does not work for the earthquakes service, therefore there may be a separate issue here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jul 2014 14:28:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/feature-layer-service-cannot-be-created-in-code/m-p/292511#M3428</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2014-07-16T14:28:09Z</dc:date>
    </item>
  </channel>
</rss>

