ArcGIS API for Silverlight getting started (1) Hello World FAQs

Source: Internet
Author: User

RelatedCode, Click here

This error is inexplicable today.

 

Do you want to call this page?

This page contains some errors that may prevent the page from being correctly displayed or running. If you do not want to test the page now, click "no ".

Error: the object is missing.

After checking the code multiple times, you can't see any problems. ThenAdd the initializationfailed attribute to the above layer.


Front-end code

  <  Usercontrol X: Class  = "Apiforsilverlightsamp. S2"  
Xmlns = "Http://schemas.microsoft.com/winfx/2006/xaml/presentation"
Xmlns: x = "Http://schemas.microsoft.com/winfx/2006/xaml"
Xmlns: d = "Http://schemas.microsoft.com/expression/blend/2008"
Xmlns: MC = "Http://schemas.openxmlformats.org/markup-compatibility/2006"
Xmlns: ESRI = "CLR-namespace: ESRI. ArcGIS. Client; Assembly = ESRI. ArcGIS. Client"
MC: ignorable = "D" >
< Grid X: Name = "Layoutroot" Background = "White" >
< ESRI: Map X: Name = "Mymap" >
< ESRI: map. Layers >
< ESRI: arcgistiledmapservicelayer ID = "Layerworldmap" Initializationfailed = "Arcgistiledmapservicelayer_initializationfailed"
URL = "Http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_Imagery_World_2D/MapServer" />
</ ESRI: map. Layers >
</ ESRI: Map >
</ Grid >
</ Usercontrol >

 

 

 

 

 

Background code

   Private VoidArcgistiledmapservicelayer_initializationfailed (ObjectSender, eventargs E)
{
ESRI. ArcGIS. Client. layer Layer=SenderAsESRI. ArcGIS. Client. layer;
MessageBox. Show (layer. initializationfailure. tostring ());
}

 

The following prompt is displayed:

 

when I saw this prompt, I suddenly realized that I was calling the services provided by ESRI, but my current network access was restricted (at the company, I had to open Baidu, msdn, and other websites before ten o'clock A.M, google doesn't open it either. I don't know what the leader thinks about it, You know ). After, access is completely normal.

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.