One of the reasons why the map is blank after the ArcGIS Server website is released

Source: Internet
Author: User
Tags server website
Generally, after a MAP website is published, if the map area is blank but other controls are displayed, it may be because: 1. the referenced service is not running properly; 2. Use local connection without adding ArcGIS identity. 3. The web server machine name contains the underscore "_". However, the actual situation may not be the same. After encountering this problem, you can only patiently find the cause to solve the problem.
Today we met this situation: using templates ProgramPublish a website. A cached map service is added to mapresource Manager. The local machine can browse normally. However, when browsing through the Internet, the interface is displayed normally and the map area is blank; if you reference a service that has not been cached, the Internet and Local browsing will be normal. The network is like this. The web server and GIS server are both on the local machine, and the local machine is in the LAN. When the Internet access IP address is set through the forwarding rule of the route, it is automatically forwarded to the local IP address. The difference between cache and non-Cache services is that when a map is displayed, the former directly obtains images on the server, while the latter dynamically generates images on the GIS server and sends them to the client. It can be seen that there is a problem when obtaining the cached image, and the local machine can access it, but the Internet cannot access it, so it is estimated that it may be related to the virtual path. Check the HTTP request on an Internet machine and find the situation:

It can be seen that when obtaining images of other controls, the external IP address of the network is used, and the local name is used for obtaining the cache image. Undoubtedly, the virtual directory in the cache path is not set correctly. Generally, when you set the virtual path corresponding to cache, job, and output after installing AGs, you are used to using hostname as the domain name. This is consistent with the IIS settings, but if you want to release it externally, consider this situation. After the virtual directory of the cache path is changed, the program will be normal for Internet browsing.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.