Eman ELbaz
Eman ELbaz

Reputation: 71

2001: There are duplicate files in AppManifest.xml in upload app to windows phone store

Validation errors

2001: There are duplicate files in AppManifest.xml. Remove one of the files and then try again. 2001: There are duplicate files in AppManifest.xml. Remove one of the files and then try again.

when i try to upload the .xap file this error appear . i try to rebuild and the same errors appear this is my AppManifest.xml

    <Deployment xmlns="http://schemas.microsoft.com/client/2007/deployment"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> 
        <Deployment.Parts>
        </Deployment.Parts>
    </Deployment>

this is my AppManifest.xaml

<Deployment xmlns="http://schemas.microsoft.com/client/2007/deployment" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" EntryPointAssembly="ZwgatElrasol" EntryPointType="ZwgatElrasol.App" RuntimeVersion="4.7.50308.0">
<Deployment.Parts>
<AssemblyPart x:Name="ZwgatElrasol" Source="ZwgatElrasol.dll" />
<AssemblyPart x:Name="Microsoft.Advertising.Mobile" Source="Microsoft.Advertising.Mobile.dll" />
<AssemblyPart x:Name="Microsoft.Advertising.Mobile.UI" Source="Microsoft.Advertising.Mobile.UI.dll" />
<AssemblyPart x:Name="microsoft.advertising.mobile.ui" Source="microsoft.advertising.mobile.ui.dll" />
<AssemblyPart x:Name="Microsoft.Phone.Controls" Source="Microsoft.Phone.Controls.dll" />
<AssemblyPart x:Name="Microsoft.Phone.Controls.Maps" Source="Microsoft.Phone.Controls.Maps.dll" />
<AssemblyPart x:Name="Microsoft.Advertising.Mobile" Source="Microsoft.Advertising.Mobile.dll" />
</Deployment.Parts>
</Deployment>

Upvotes: 1

Views: 702

Answers (1)

Kasun Kodagoda
Kasun Kodagoda

Reputation: 4024

Some how your project has AppManifest.xaml file in it. But it shouldn't be there.The values in your AppManiferst.xml is correct. Keep it as it is and remove the AppManifest.xaml file.

You are using AdControl and even if you add that reference to your project, those AssemblyPart tags shouldn't be in the AppManifest.xaml file. So remove the AppManifest.xaml and keep the AppManifest.xml file that is under your Properties section as it is.

If it still a mess, the best way for you is to create a new project and start over, add the references for the Advertising in to the References section and then add the AdController described in the other questions of yours, Don't make any changes to AppManifest.xml file.

You need to turn on some capabilities on the WPAppManifest.xml but do them using the designer provided. And if you have your ApplicationId and AdUnitId from the pubCenter, include them and all should work correctly.

You can use other alternative such as AdDuplex to display ads when pubCenter ads are not available.

Upvotes: 2

Related Questions