I develop universal app. I need to add map control to Windows version. So I use Bing Maps SDK for Windows 8.1 Store apps (https://visualstudiogallery.msdn.microsoft.com/224eb93a-ebc4-46ba-9be7-90ee777ad9e1), but it need reference "Microsoft Visual C++ Runtime Package for Windows" and Build settings for "Platform target" cannot be "Any CPU". After this my next rebuild get error "Error 1 Payload contains two or more files with the same destination path 'Telerik.UI.Xaml.Grid\Themes\Resources.xbf'. Source files:
C:\Program Files (x86)\Telerik\UI for Windows Universal Q3 2014\SDKs\Windows 8.1\Telerik UI for Windows Universal\Redist\CommonConfiguration\neutral\Telerik.UI.Xaml.Grid\Themes\Resources.xbf
C:\Develop\Reality.cz\Reality.cz - Universal\Reality.cz - Universal\Reality.cz - Universal.Windows\bin\Debug\Telerik.UI.Xaml.Grid\Themes\Resources.xbf Reality.cz - Universal.Windows".
When I remove references for Bing Map and MS Visual C++ Runtime, I rebuild with success. What's wrong?
12 Answers, 1 is accepted
Thank you for contacting us.
We successfully reproduced the issue by using the Telerik UI for Windows Universal extensions together with Bing Maps SDK. The problem disappears if you directly add references to the assembly files instead of using the extensions. Could you please check if this works in your scenario?
I look forward to your reply.
Regards,
Rosy Topchiyska
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

Thank you for response.
I added references directly. Rebuild was successfully, but after run I get new error. I just added references Telerik+Bing Maps. No other code was added.
Error is in App class in method
public global::Windows.UI.Xaml.Markup.IXamlType GetXamlType(global::System.Type type)
{
if(_provider == null)
{
_provider = new global::TwiceM.Realitycz.Universal.Windows.Reality_cz___Universal_Windows_XamlTypeInfo.XamlTypeInfoProvider();
}
return _provider.GetXamlTypeByType(type); <== error
}
type={Name = "VirtualizationStrategyDefinition" FullName = "Telerik.UI.Xaml.Controls.Primitives.VirtualizationStrategyDefinition"}
_provider={TwiceM.Realitycz.Universal.Windows.Reality_cz___Universal_Windows_XamlTypeInfo.XamlTypeInfoProvider}
Error: is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)
Stack: at System.StubHelpers.StubHelpers.GetWinRTFactoryObject(IntPtr pCPCMD)
at Bing.Maps.Bing_Maps_XamlTypeInfo.XamlMetaDataProvider..ctor()
at TwiceM.Realitycz.Universal.Windows.Reality_cz___Universal_Windows_XamlTypeInfo.XamlTypeInfoProvider.get_OtherProviders()
at TwiceM.Realitycz.Universal.Windows.Reality_cz___Universal_Windows_XamlTypeInfo.XamlTypeInfoProvider.CheckOtherMetadataProvidersForType(Type type)
at TwiceM.Realitycz.Universal.Windows.Reality_cz___Universal_Windows_XamlTypeInfo.XamlTypeInfoProvider.GetXamlTypeByType(Type type)
at TwiceM.Realitycz.Universal.Windows.App.GetXamlType(Type type)

I attempted to completely remove and re-download my solution but that didn't seem to change anything. Referencing the binaries directly does seem to work, however.
Miroslav, could you please open a support ticket and attach a sample project that reproduces this issue.
Matt, we do not provide support for Windows 10 yet. It is normal to experience some issues with our controls, because the current version is built against Windows 8 platform.
Please, let us know if you have any other questions.
Regards,
Rosy Topchiyska
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

Thank you for the question. Unfortunately, we could not find out why this happens. We will let you know if we have more information about this issue.
Regards,
Rosy Topchiyska
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

Can you please elaborate more on "Adding references directly doesn't work as well"?
Based on our experience, our controls work if direct references are used. There are some "design time errors", but a sample project runs successfully, despite them. What controls are you using?
As for the original issue with the "SDKs" references, we are fully aware of them and they are already in our backlog.
Regards,
Vladislav
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

thanks for your answer! Indeed I did something wrong, which resulted in the app crashing at runtime... however, I removed everything again, removed bin+obj folders, added the correct references again and it works.
However, I am looking forward to you setting the story in your backlog to "done" :)
Regards
Sebastian

I'm also getting this error, we just purchased windows 8 library and now we are migrating our app to Windows 10 so we can release a beta, and i'm getting this payload error just by referencing the Telerik Extension SDK. Seems that it is trying to copy the Redist folder to the output location twice referenced in the SDKManifest file. I removed the Redist folder to not get the error then I manually placed it in the correct location in my output director and it works. I have other Extension SDKs referenced in my application and none of them seem to have this issue. You can't even build a Windows 8.1 app using Visual Studio 2013 running on Windows 10. I have a machine running VS2013 on Winodws 8.1 OS and my Windows 8.1 app builds, but if I use VS2013 on a Windows 10 OS still build a Windows 8.1 app I get the payload error. Same problem occurs using Visual Studio 2015 but the error message is just slightly different.
Errors:
Processing Resources failed with error: Duplicate Entry.
Conflicting values for resource 'Files/Telerik.UI.Xaml.Primitives/Themes/ThemeResourcesLight.xbf'
Thank you for the additional information on the case provided.
We are aware that currently our "UI for Windows Universal" suite is not fully compatible with "Windows 10" operating system. And it is in our plans to release a version that will address these flaws. Our target is to release such version soon after the "Windows 10" OS is officially released.
Regards,
Vladislav
Telerik
