未在Silverlight中加载本地ArcGIS服务器REST服务

未在Silverlight中加载本地ArcGIS服务器REST服务,silverlight,arcgis,esri,arcgis-server,Silverlight,Arcgis,Esri,Arcgis Server,我正在使用“ArcGIS API for Silverlight 3.2”进行开发,并将我的地图发布到本地主机上的ArcServer 10.2中,可以用javascript完美地加载我自己的REST服务 但是,当我尝试从ArcGIS服务器地图服务加载自己的REST服务时,Silverlight控件将运行,在底部显示ESRI图像,但不显示地图 我的xaml代码是: <UserControl x:Class="CreatingAMap.MainPage" xmlns="http://schem

我正在使用“ArcGIS API for Silverlight 3.2”进行开发,并将我的地图发布到本地主机上的ArcServer 10.2中,可以用javascript完美地加载我自己的REST服务

但是,当我尝试从ArcGIS服务器地图服务加载自己的REST服务时,Silverlight控件将运行,在底部显示ESRI图像,但不显示地图

我的xaml代码是:

<UserControl x:Class="CreatingAMap.MainPage"
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="http://schemas.esri.com/arcgis/client/2009"
mc:Ignorable="d"
d:DesignHeight="300" d:DesignWidth="400">
<Grid x:Name="LayoutRoot" Background="White">
    <esri:Map x:Name="MyMap">
        <esri:Map.Layers>
            <esri:ArcGISDynamicMapServiceLayer ID="test2" Url="http://localhost:6080/arcgis/rest/services/Electricity_WMS/MapServer" />              
        </esri:Map.Layers>
    </esri:Map>

</Grid>

当我把我自己的REST地址作为URL属性时,我可以在设计模式下看到我的地图,但我会运行它,在底部显示ESRI图像,但没有地图

此外,当我在ArcGIS服务器中使用样本服务(如默认情况下在ArcServer 10.2中的“SampleWorldCities”)或在ArcGIS Online中使用样本时,我的应用程序运行良好,但当我使用在ArcServer中发布的服务时,该服务不起作用,并在底部显示ESRI图像,但没有地图


有什么线索吗?

我不确定,但我认为不需要这个元素。请在不使用该选项的情况下尝试,例如:

<esri:Map x:Name="MyMap">
    <esri:ArcGISDynamicMapServiceLayer ID="test2" Url="http://localhost:6080/arcgis/rest/services/Electricity_WMS/MapServer" />
</esri:Map>


您是否尝试过像fiddler这样的嗅探工具来查看http请求的情况?听起来可能是跨域策略设置。silverlight还使用了一个客户端访问策略xml文件,这可能是原因之一。同样,首先,使用fiddler之类的工具查看服务调用的情况。希望这有帮助。

谢谢你的关注。我试过了,但没用。