Select to view content in your preferred language

XamlParseExcemption in Blend

1148
7
05-18-2012 11:35 AM
BenTreptow1
Deactivated User
I'm getting a Xaml Parse Exception in Blend whenever I try to add a Map control. Anyone know how to fix this?

<UserControl 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"
 x:Class="MapCheck.MainPage"
 Width="640" Height="480">

 <Grid x:Name="LayoutRoot" Background="White">
  <esri:Map>
  </esri:Map>
 </Grid>
</UserControl>
0 Kudos
7 Replies
JenniferNery
Esri Regular Contributor
What version of the API are you using? If you are using v3.0 Pre-Release, you need Expression Blend 5.
0 Kudos
BenTreptow1
Deactivated User
i'm actually using v2.4 and sl4. what's really strange, is that sometimes the app works in blend and other times i get the error.
0 Kudos
JenniferNery
Esri Regular Contributor
This seems to be related thread: http://forums.arcgis.com/threads/49936-XamlParseException-in-designer-with-a-map. But I didn't hear back whether it was related to the services they were using.
0 Kudos
BenTreptow1
Deactivated User
Sounds like I have the same issue as in the other thread. I'm not even adding a service to my map object and it still causes the error in Blend. Just simply adding an empty map to the xaml is what evidently throws the exception in Blend. Is there a resolution for this?
0 Kudos
JenniferNery
Esri Regular Contributor
What version of the API are you using? This is really strange, I've not heard about XamlParseException with just map.
0 Kudos
BenTreptow1
Deactivated User
i'm using v2.4 and the sl4. it's really weird, sometimes it works. sometimes it doens't. i've completely stripped my code down to just what i have in my initial thread, and that's all it takes to raise the exception.
0 Kudos
DominiqueBroux
Esri Frequent Contributor
That might happen if your blend project references ESRI dlls that are not the latest installed version.
For example, you run into this issue if after installing ArcGIS SL 3.0 you create a blend project referencing 2.4 dlls.
That's because the design view of Blend is always using the latest installed version of the controls.

This should not be an issue at runtime though.
0 Kudos