Problem: Maps and Apps gallery shows "Loading Maps and Apps..." and no items appear
When accessing the ArcGIS for Local Government Maps and Apps Gallery, the gallery section shows the message 'Loading Maps and Apps...' but fails to load the gallery items after several minutes.
The application is not able to access the ArcGIS Online group containing the items for the application's gallery.
Solution or Workaround
The following terms are defined for reference when diagnosing the problem.
Group refers to an ArcGIS Online group. A Maps and Apps Gallery is linked to a single group. The group may be public or private, and the group may be a normal account or an ArcGIS for Organizations account.
Group ID refers to the unique code used by ArcGIS Online to identify the group.
Note: For example, the try-it live version of the Maps and Apps Gallery is linked to the ArcGIS Online Group ID a3031224716a4624a224c00dd629d199.
Token refers to the ArcGIS access token that is generated using Token Helper, the target Maps and Apps Gallery URL, and the ArcGIS Online Group owner's ArcGIS Online login name and password.
Note: The token occasionally ends in one or more periods ‘.’--these are essential parts of the token. ArcGIS Online login names and passwords are case-sensitive.
The following steps describe how to diagnose the problem.
Verify that the ArcGIS Online token was generated using the target Maps and Apps Gallery URL.
Note: For example, the token for the try it live version of the Maps and Apps Gallery uses 'http://localgovtemplates2.esri.com/MapsAndApps'.
Use the Group ID Helper to check the Group ID and token. Enter the group owner's ArcGIS Online login name and the token to see a list of the ArcGIS Online groups owned by that user. The group that is being used for the Maps and Apps Gallery must appear in this list, and its ID must match the ID used in the application's configuration/config.txt file.
In the Internet Information Services (IIS) management application, check that the target Maps and Apps site has been converted to an application and that the site is using the DefaultAppPool.
Note: In IIS 6, the latter can be checked by selecting the site and clicking on Base parameters in the rightmost column of IIS's management application.
Verify that the site's web.config does not contain the line
Code: <compilation targetFramework="4.0"/>
The following sample web.config file does not contain this line and can be used for the site.
This sample includes lines to control the names that are not to be treated as default documents (the lines beginning with '<remove value=...') as well as the name for the default document (the line beginning with '<add value=...'). With a default document for the site, users do not need to type 'mapps.html' as part of the URL. The <defaultDocument>...</defaultDocument> section is optional.
A. Navigate to Windows Control Panel > Programs and Features > Turn Windows features on or off. B. Navigate to Internet Services > World Wide Web Services > Application Development Features. C. Verify that .NET Extensibility, ASP, ASP.NET, ISAPI Extensions, and ISAPI Filters are checked.
If .Net was installed on the server before IIS was enabled, IIS may not be able to run ASP.Net programs.
Using the Windows command prompt, type
Code: cd C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 aspnet_regiis –ir
This instruction sets up ASP.NET version 2 but does not change any existing web sites to use that version.
Repeat step 8 replacing the portion 'http://localgovtemplates2.esri.com/MapsAndApps' with the URL of the target Maps and Apps site. The response in the browser should be the same JSON structure as in step 8.
Last Modified: 5/5/2016
Article ID: 000011566
Software: ArcGIS for Local Government 10.0, 10.1, 10.2