Bing Maps Runtime Error Windows 8.1

人走茶凉 提交于 2019-12-23 15:15:55

问题


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


回答1:


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

Thanks




回答2:


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.



来源:https://stackoverflow.com/questions/19833065/bing-maps-runtime-error-windows-8-1

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!