Bing Maps Runtime Error Windows 8.1
Asked Answered
N

2

4

When I run the app of Windows 8.1 with Bing Map integration, I get following error.

An exception of type 'Windows.UI.Xaml.Markup.XamlParseException' occurred in DistanceApp.exe but was not handled in user code

WinRT information: Cannot deserialize XBF metadata type list as 'Map' was not found in namespace 'Bing.Maps'. [Line: 0 Position: 0]

Additional information: The text associated with this error code could not be found.

Cannot deserialize XBF metadata type list as 'Map' was not found in namespace 'Bing.Maps'. [Line: 0 Position: 0]

If there is a handler for this exception, the program may be safely continued.

<Grid Grid.Column="1" Margin="20,10" >
            <Maps:Map Name="bingMap" HomeRegion="US" Credentials="{Bing Key}" />
        </Grid>

I can see map design time and it builds successfully. But when I run this error comes to InitializeComponent() method.

I'm using VS 2013 RTM and Windows 8.1.

I searched a lot but I didn't get anything.

Please help me

Nikolaus answered 7/11, 2013 at 10:8 Comment(2)
Is there anything in InitializeComponent()?Mosqueda
no. I didn't change anything in InitializeComponent(). Even I created new project with just Bing Map Control...still same issueNikolaus
N
5

It's solved. I changed the project platform target from x86 to x64 and its solved.

Thanks

Nikolaus answered 8/11, 2013 at 7:37 Comment(0)
G
0

I was getting a similar error Cannot deserialize XBF metadata type list as '<name of key>' was not found in namespace '<my namespace>' with UWP for two of my resources in my application resource dictionary.

For the first resource I had accidentally used x:Name instead of x:Key.

For the second I had set both the x:Key and x:Name attributes, and removing the x:Name attribute fixed it.

Grimbly answered 5/1, 2017 at 23:48 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.