Select to view content in your preferred language

Error when using basemap layer

2632
2
10-19-2011 09:34 AM
Labels (1)
AndrewPurkis
Deactivated User
I've just started working with ArcGIS Runtime.  Unfortunately, I have no ArcView background, so I'm not sure if I'm doing something wrong or 'stupid'.

I created a very simple map with 3 layers, river,city boundaries and airports.  If I just add them and build a MapPackage and run using :

<Window x:Class="Test1.MainWindow"
        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"
        Title="MainWindow" Height="350" Width="525">
   
    <Grid>
        <esri:Map x:Name="MyMap">

           <esri:LocalArcGISDynamicMapServiceLayer ID="LocalDynamicLayers" Path="portland.mpk" />
         </esri:Map>

    </Grid>
</Window>

everything work fine.  If I place the 3 layers in a Group Layer, again it works fine, but if I put them in Basemap layer then I get the following error:

"Failed to create service portland MapServer. SharedMemoryLinkClosedException Error code: 500"

Needless to say I started the other way around and it took a while to realize my problem.
0 Kudos
2 Replies
MichaelBranscomb
Esri Frequent Contributor
Hi,

Thanks for the post. Basemap layers within ArcGIS for Desktop (ArcView, etc) are not typically supported for packaging or publishing as services because they are designed to behave in a particular manner within ArcMap in order to provide great performance with large background layers.

However, the analyzers (which alert you via the Prepare Window) should pick this up when packaging so this is something we need to take a look at.

Thanks again for the feedback

Cheers

Mike
0 Kudos
AndrewPurkis
Deactivated User
Hi Mike,

Thanks for the reply.  I guess I'll chalk that one up to 'stupid'! 

My background if MapObjects, but so far I'm impressed with what I'm seeing.

Thanks

Andrew Purkis
0 Kudos