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

13 posts, 0 answers
  1. Miroslav
    Miroslav avatar
    30 posts
    Member since:
    Feb 2012

    Posted 18 Jan 2015 Link to this post

    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?
  2. Rosy Topchiyska
    Admin
    Rosy Topchiyska avatar
    551 posts

    Posted 21 Jan 2015 Link to this post

    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.

     
  3. Miroslav
    Miroslav avatar
    30 posts
    Member since:
    Feb 2012

    Posted 24 Jan 2015 in reply to Rosy Topchiyska Link to this post

    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)
  4. Matt
    Matt avatar
    17 posts
    Member since:
    Jan 2013

    Posted 25 Jan 2015 Link to this post

    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.
  5. Rosy Topchiyska
    Admin
    Rosy Topchiyska avatar
    551 posts

    Posted 28 Jan 2015 Link to this post

    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.

     
  6. Shehab
    Shehab avatar
    1 posts
    Member since:
    Jan 2013

    Posted 22 Feb 2015 in reply to Rosy Topchiyska Link to this post

    I got the same error but your solution worked. but what really is the problem?
  7. Rosy Topchiyska
    Admin
    Rosy Topchiyska avatar
    551 posts

    Posted 26 Feb 2015 Link to this post

    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.

     
  8. Sebastian
    Sebastian avatar
    2 posts
    Member since:
    Nov 2013

    Posted 18 Mar 2015 in reply to Rosy Topchiyska Link to this post

    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.
  9. Vladislav
    Admin
    Vladislav avatar
    276 posts

    Posted 23 Mar 2015 Link to this post

    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.

     
  10. Sebastian
    Sebastian avatar
    2 posts
    Member since:
    Nov 2013

    Posted 23 Mar 2015 in reply to Vladislav Link to this post

    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
  11. Christopher
    Christopher avatar
    1 posts
    Member since:
    Apr 2015

    Posted 08 Jun 2015 Link to this post

    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'

  12. Vladislav
    Admin
    Vladislav avatar
    276 posts

    Posted 11 Jun 2015 Link to this post

    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
  13. Matt
    Matt avatar
    17 posts
    Member since:
    Jan 2013

    Posted 20 Jul 2015 Link to this post

    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. :)
Back to Top