<?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: Runtime .net access error in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/runtime-net-access-error/m-p/417371#M5007</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looking at the runtime &lt;A href="https://developers.arcgis.com/net/latest/wpf/guide/platform-error-codes.htm"&gt;error&amp;nbsp;codes topic&lt;/A&gt;, that error code suggests the&amp;nbsp;data returned is not the expected content for a service featuretable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you inspect&amp;nbsp;_envWorkingData.Url is it a valid .../FeatureServer endpoint?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Apr 2020 22:12:43 GMT</pubDate>
    <dc:creator>MichaelBranscomb</dc:creator>
    <dc:date>2020-04-08T22:12:43Z</dc:date>
    <item>
      <title>Runtime .net access error</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/runtime-net-access-error/m-p/417368#M5004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I'm working on an augmented reality mobile app, it's real basic, I just want to see monitoring wells in place. Anyway I am using my monitoring well dataset in AGOL and I am having trouble accessing the data, below is the C# code that is attempting to access the data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;_portal = await ArcGISPortal.CreateAsync(baseAddress, cred);&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;_envWorkingData = await PortalItem.CreateAsync(_portal, "####");&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;// build a URL to the first layer in the service&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;var welluri = new Uri(_envWorkingData.Url + "/1");&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;// create a new service feature table referencing the service&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;var wellTable = new ServiceFeatureTable(welluri);&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;// create a new feature layer from the table&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;await wellTable.LoadAsync(); &amp;lt;- Here is where the access error shows up&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;if(wellTable.LoadStatus == Esri.ArcGISRuntime.LoadStatus.Loaded)&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;_wellsLayer = new FeatureLayer(wellTable);&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/P&gt;&lt;P&gt;I get error #403 "You do not have permissions to access this resource or perform this operation.", even though I have a publisher level AGOL account. Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Apr 2020 17:15:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/runtime-net-access-error/m-p/417368#M5004</guid>
      <dc:creator>GrantHaynes</dc:creator>
      <dc:date>2020-04-05T17:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime .net access error</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/runtime-net-access-error/m-p/417369#M5005</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;Try adding the credential to the Authentication Manager e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="line-numbers language-csharp"&gt;&lt;CODE&gt;AuthenticationManager&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Current&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;AddCredential&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;cred&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Apr 2020 18:19:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/runtime-net-access-error/m-p/417369#M5005</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2020-04-06T18:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime .net access error</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/runtime-net-access-error/m-p/417370#M5006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, that cleared up the 403 error but now it comes back with a "\"invalid call with current token type\" error, error code 6001&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2020 21:11:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/runtime-net-access-error/m-p/417370#M5006</guid>
      <dc:creator>GrantHaynes</dc:creator>
      <dc:date>2020-04-08T21:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime .net access error</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/runtime-net-access-error/m-p/417371#M5007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looking at the runtime &lt;A href="https://developers.arcgis.com/net/latest/wpf/guide/platform-error-codes.htm"&gt;error&amp;nbsp;codes topic&lt;/A&gt;, that error code suggests the&amp;nbsp;data returned is not the expected content for a service featuretable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you inspect&amp;nbsp;_envWorkingData.Url is it a valid .../FeatureServer endpoint?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2020 22:12:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/runtime-net-access-error/m-p/417371#M5007</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2020-04-08T22:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime .net access error</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/runtime-net-access-error/m-p/417372#M5008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The resulting URI takes me here&amp;nbsp;&lt;A class="link-titled" href="https://dlzcorp.maps.arcgis.com/sharing/rest/content/items/3b5c3568c4c240349c7f0e163b8c9d7f/1" title="https://dlzcorp.maps.arcgis.com/sharing/rest/content/items/3b5c3568c4c240349c7f0e163b8c9d7f/1"&gt;ArcGIS Portal Directory&lt;/A&gt;&amp;nbsp;so that to me doesn't look like a valid endpoint, but it is consistent with this resource explaining how to add data&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/net/latest/uwp/guide/access-content.htm" title="https://developers.arcgis.com/net/latest/uwp/guide/access-content.htm"&gt;Access portal content—ArcGIS Runtime SDK for .NET | ArcGIS for Developers&lt;/A&gt;.&amp;nbsp; Maybe it has to do with loading the data? I followed the guide here on how to that&amp;nbsp;&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/net/latest/ios/guide/features-and-graphics.htm" title="https://developers.arcgis.com/net/latest/ios/guide/features-and-graphics.htm"&gt;Features and graphics—ArcGIS Runtime SDK for .NET | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2020 00:11:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/runtime-net-access-error/m-p/417372#M5008</guid>
      <dc:creator>GrantHaynes</dc:creator>
      <dc:date>2020-04-09T00:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime .net access error</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/runtime-net-access-error/m-p/417373#M5009</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;Sorry - I should have spotted this sooner - the property you want is&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/net/latest/wpf/api-reference/html/P_Esri_ArcGISRuntime_Portal_PortalItem_ServiceUrl.htm" title="https://developers.arcgis.com/net/latest/wpf/api-reference/html/P_Esri_ArcGISRuntime_Portal_PortalItem_ServiceUrl.htm"&gt;PortalItem.ServiceUrl Property&lt;/A&gt;&amp;nbsp;rather than PortalItem.Url.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2020 03:16:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/runtime-net-access-error/m-p/417373#M5009</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2020-04-09T03:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime .net access error</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/runtime-net-access-error/m-p/417374#M5010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That was it. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2020 19:22:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/runtime-net-access-error/m-p/417374#M5010</guid>
      <dc:creator>GrantHaynes</dc:creator>
      <dc:date>2020-04-09T19:22:41Z</dc:date>
    </item>
  </channel>
</rss>

