Missing reference or assembly

3388
1
07-10-2013 02:36 AM
Labels (1)
PremaRajanna
New Contributor
Hi,

I am working on WPF application using Visual Studio 2010. I have just started learning this app. When I am creating map I am getting below error but I added all the reference files from ESRI resources.

The type 'esri:Map' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built.


Prema
0 Kudos
1 Reply
MichaelBranscomb
Esri Frequent Contributor
Hi,

It sounds like you might be missing the XAML namespace? - make sure your XAML contains an esri namespace reference e.g.

<Window x:Class="ArcGISWPFSDK.Map"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:esri="http://schemas.esri.com/arcgis/client/2009">
    <Grid x:Name="LayoutRoot" >
        <Grid.Resources>
            <BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter"/>
        </Grid.Resources>
        <esri:Map x:Name="MyMap" UseAcceleratedDisplay="True" WrapAround="True" Background="#FFE3E3E3">
            <esri:ArcGISTiledMapServiceLayer ID="MyLayer" 
                Url="http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer" />
        </esri:Map>
        <ProgressBar x:Name="MyProgressBar" IsIndeterminate="True" VerticalAlignment="Bottom" Width="200" Height="20" Margin="10" Visibility="{Binding Path=IsBusy, Converter={StaticResource BooleanToVisibilityConverter}}"></ProgressBar>
    </Grid>
</Window>


Cheers

Mike
0 Kudos