This is a migrated thread and some comments may be shown as answers.

Error "Payload contains two or more files with the same destination path"

12 Answers 338 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Miroslav
Top achievements
Rank 1
Miroslav asked on 18 Jan 2015, 11:20 AM
Hi,

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

Sort by
0
Rosy Topchiyska
Telerik team
answered on 21 Jan 2015, 11:48 AM
Hello Miroslav,

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.

 
0
Miroslav
Top achievements
Rank 1
answered on 24 Jan 2015, 01:55 PM
Hello Rosy,

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)
0
Matt
Top achievements
Rank 1
answered on 25 Jan 2015, 09:42 PM
I'm also getting the Payload error after doing a fresh install on Windows 10. My Windows 8.1 machine does not receive this error with the same solution.
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.
0
Rosy Topchiyska
Telerik team
answered on 28 Jan 2015, 05:01 PM
Hello,

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.

 
0
Shehab
Top achievements
Rank 1
answered on 22 Feb 2015, 04:56 PM
I got the same error but your solution worked. but what really is the problem?
0
Rosy Topchiyska
Telerik team
answered on 26 Feb 2015, 01:46 PM
Hi Shehab,

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.

 
0
Sebastian
Top achievements
Rank 1
answered on 18 Mar 2015, 08:54 PM
Are there some news regarding this issue? I'm having the same troubles on Win 10 and VS2015... Adding references directly doesn't work as well. Very strange since the same code already worked on Win 8, so I suppose Win 10 is the deal breaker here.
0
Vladislav
Telerik team
answered on 23 Mar 2015, 09:21 AM
Hello Sebastian,

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.

 
0
Sebastian
Top achievements
Rank 1
answered on 23 Mar 2015, 03:29 PM
Hi Vladislav,

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
0
Christopher
Top achievements
Rank 1
answered on 08 Jun 2015, 11:23 PM

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'

0
Vladislav
Telerik team
answered on 11 Jun 2015, 10:50 AM
Hi Christopher,

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
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Matt
Top achievements
Rank 1
answered on 20 Jul 2015, 11:52 PM
Great news! After installing VS2015 RTM, this seems to ​compile and run from within 2015 now. I don't think I even need VS2013 installed anymore. :)
Tags
General Discussion
Asked by
Miroslav
Top achievements
Rank 1
Answers by
Rosy Topchiyska
Telerik team
Miroslav
Top achievements
Rank 1
Matt
Top achievements
Rank 1
Shehab
Top achievements
Rank 1
Sebastian
Top achievements
Rank 1
Vladislav
Telerik team
Christopher
Top achievements
Rank 1
Share this question
or