<?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: Basemap is not loading - MFC (C++) in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/basemap-is-not-loading-mfc-c/m-p/1195706#M11167</link>
    <description>&lt;P&gt;I'm not sure why your MFC app is running with only TLS1.0 enabled, but if you add this line of code before using the runtime, it should work:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;&lt;/P&gt;</description>
    <pubDate>Tue, 26 Jul 2022 00:10:52 GMT</pubDate>
    <dc:creator>dotMorten_esri</dc:creator>
    <dc:date>2022-07-26T00:10:52Z</dc:date>
    <item>
      <title>Basemap is not loading - MFC (C++)</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/basemap-is-not-loading-mfc-c/m-p/1188758#M11116</link>
      <description>&lt;P&gt;I am trying to load a basemap in Map control in a MFC (C++) view. The view will host the .NET control (which in C#).&lt;/P&gt;&lt;P&gt;I’m using interop and C++/CLI between C++ and .NET.&lt;/P&gt;&lt;P&gt;I will see the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mallynaihabi_4-1656686488539.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/45006i64C377161DF8ED60/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mallynaihabi_4-1656686488539.png" alt="mallynaihabi_4-1656686488539.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you can see, that Powered by Esri get display but the map itself is blank/transparent.&lt;/P&gt;&lt;P&gt;Here is the code that I use to created/load the basemap:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mallynaihabi_1-1656686406986.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/45002i5AAA8BB2B61BFC22/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mallynaihabi_1-1656686406986.png" alt="mallynaihabi_1-1656686406986.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also have a code which set the Esri.ArcGISRuntime.ArcGISRuntimeEnvironment.ApiKey.&lt;/P&gt;&lt;P&gt;I also update the background color but still only display the background of the view.&lt;/P&gt;&lt;P&gt;Here is the code for Map control:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mallynaihabi_2-1656686427711.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/45003iB90B80A7FC5D3993/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mallynaihabi_2-1656686427711.png" alt="mallynaihabi_2-1656686427711.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mallynaihabi_3-1656686435398.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/45004i243138FCADFCD483/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mallynaihabi_3-1656686435398.png" alt="mallynaihabi_3-1656686435398.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The view have other .NET controls and will display that.&lt;/P&gt;&lt;P&gt;I can see the basemap in the map in separate solution inside a MFC view.&lt;/P&gt;&lt;P&gt;I also see the following in debugger (after Map is created and the view is created) which I will not see in other solution:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mallynaihabi_17-1656686996043.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/45014i3E3303D704410E70/image-size/large?v=v2&amp;amp;px=999" role="button" title="mallynaihabi_17-1656686996043.png" alt="mallynaihabi_17-1656686996043.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any insight will be very appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mallyna&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2022 14:57:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/basemap-is-not-loading-mfc-c/m-p/1188758#M11116</guid>
      <dc:creator>mallynaihabi</dc:creator>
      <dc:date>2022-07-01T14:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: Basemap is not loading - MFC (C++)</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/basemap-is-not-loading-mfc-c/m-p/1188802#M11117</link>
      <description>&lt;P&gt;Looks like there's an issue with communicating with ArcGIS Online. Are you able to load the basemap in a .NET application, without using MFC? Which version of the API and .NET are you using, and what operating system are you using? If any of those are really old, you might just be using a component that doesn't support TLS1.2+&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2022 16:37:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/basemap-is-not-loading-mfc-c/m-p/1188802#M11117</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2022-07-01T16:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: Basemap is not loading - MFC (C++)</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/basemap-is-not-loading-mfc-c/m-p/1189770#M11119</link>
      <description>&lt;P&gt;yes. i can load the basemap in .NET application without using MFC. The application is using .NET Framework 4.7.2 and Win 10.&amp;nbsp; I have a small MFC application that can load the basemap on the same machine and that application also targeting .NET Framework 4.7.2.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2022 11:28:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/basemap-is-not-loading-mfc-c/m-p/1189770#M11119</guid>
      <dc:creator>mallynaihabi</dc:creator>
      <dc:date>2022-07-06T11:28:15Z</dc:date>
    </item>
    <item>
      <title>Re: Basemap is not loading - MFC (C++)</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/basemap-is-not-loading-mfc-c/m-p/1192559#M11141</link>
      <description>&lt;P&gt;Would you be able to create a small sample visual studio project that reproduces the issue and share it?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2022 18:05:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/basemap-is-not-loading-mfc-c/m-p/1192559#M11141</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2022-07-15T18:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: Basemap is not loading - MFC (C++)</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/basemap-is-not-loading-mfc-c/m-p/1195706#M11167</link>
      <description>&lt;P&gt;I'm not sure why your MFC app is running with only TLS1.0 enabled, but if you add this line of code before using the runtime, it should work:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2022 00:10:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/basemap-is-not-loading-mfc-c/m-p/1195706#M11167</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2022-07-26T00:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: Basemap is not loading - MFC (C++)</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/basemap-is-not-loading-mfc-c/m-p/1196486#M11179</link>
      <description>&lt;P&gt;I can load the basemap now.&amp;nbsp; Thank you!!&lt;/P&gt;&lt;P&gt;I have another quick question.&lt;/P&gt;&lt;P&gt;In the ESRI demo to add a point, line and polygon which will load a basemap then will add a point, line and poygon.&amp;nbsp; if the basemap is not loaded why can't i see the point, line and polygon?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2022 18:05:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/basemap-is-not-loading-mfc-c/m-p/1196486#M11179</guid>
      <dc:creator>mallynaihabi</dc:creator>
      <dc:date>2022-07-27T18:05:59Z</dc:date>
    </item>
    <item>
      <title>Re: Basemap is not loading - MFC (C++)</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/basemap-is-not-loading-mfc-c/m-p/1196492#M11180</link>
      <description>&lt;P&gt;You must have a map with an extent and spatial reference established, or overlays won't render.&lt;BR /&gt;You can create an empty map and set the SpatialReference in the constructor, and an InitialViewpoint to an extent, and it should show.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2022 18:21:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/basemap-is-not-loading-mfc-c/m-p/1196492#M11180</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2022-07-27T18:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: Basemap is not loading - MFC (C++)</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/basemap-is-not-loading-mfc-c/m-p/1196498#M11181</link>
      <description>&lt;P&gt;I figure it out.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2022 18:32:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/basemap-is-not-loading-mfc-c/m-p/1196498#M11181</guid>
      <dc:creator>mallynaihabi</dc:creator>
      <dc:date>2022-07-27T18:32:20Z</dc:date>
    </item>
  </channel>
</rss>

