enipla

Unhandled Error in Silverlight Application Code: 4004

Discussion created by enipla on Sep 8, 2010
Latest reply on Sep 27, 2010 by prakshepbjani1979
Unhandled Error in Silverlight Application Code: 4004

I am trying to follow the tutorial for my first SilverLight application - http://resources.esri.com/help/9.3/arcgisserver/apis/silverlight/help/index.html

I can hit the ESRI server with Silverlight fine.  But when I change it to my server I get the error - Unhandled Error in Silverlight Application Code: 4004

I have the clientaccesspolicy.xml and can browse to it.  I can see the listed services in the browser (Http://localhost/arcgis/rest/services)

There is nothing special going on here.  All I have is a map control ---

<UserControl x:Class="SilverlightApplication3.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="clr-namespace:ESRI.ArcGIS.Client;assembly=ESRI.ArcGIS.Client"     
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">
    <Grid x:Name="LayoutRoot" Background="White">

        <esri:Map x:Name="MyMap" DataContext="{Binding}">
            <esri:ArcGISTiledMapServiceLayer ID="Parcel"
           Url="http://localhost/ArcGIS/services/Test1/MapServer"/>
        </esri:Map>


    </Grid>
</UserControl>

--

I can add the service to an ArcMap project.

Any ideas would be welcome.

Outcomes