ArgumentException System.ArgumentException on loading test XML in windows phone 8.1 app



I'm developing an unity game for windows phone 8.1. I've just tried to implement in app purchases in my game using the prime[31]'s plugin for Windows Store apps. The problem is when I try to load my test XML file with the product details I get this error message in VS :



---- Exception loading xml file: System.ArgumentException: Value does not fall within the expected range.
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at Prime31.MetroStore.Store.<>c__DisplayClass4.<<loadTestingLicenseXmlFile>b__2>d__7.MoveNext()


Here is my XML content :



<?xml version="1.0" encoding="utf-16" ?>
<CurrentApp>
<ListingInformation>
<App>
<AppId>dee9c1f9-ffb3-a04a-b730-397cb775d9ef</AppId>
<LinkUri>http://ift.tt/19vY1MU;
<CurrentMarket>en-us</CurrentMarket>
<AgeRating>3</AgeRating>
<MarketData xml:lang="en-us">
<Name>In-app purchases</Name>
<Description>AppDescription</Description>
<Price>5.99</Price>
<CurrencySymbol>$</CurrencySymbol>
<CurrencyCode>USD</CurrencyCode>
</MarketData>
</App>

<Product ProductId="bp_pack_1" ProductType="Consumable">
<MarketData xml:lang="en-us">
<Name>cherries1</Name>
<Price>1.99</Price>
<CurrencySymbol>$</CurrencySymbol>
<CurrencyCode>USD</CurrencyCode>
</MarketData>
</Product>
<Product ProductId="bp_pack_2" ProductType="Consumable">
<MarketData xml:lang="en-us">
<Name>cherries2</Name>
<Price>2.99</Price>
<CurrencySymbol>$</CurrencySymbol>
<CurrencyCode>USD</CurrencyCode>
</MarketData>
</Product>
<Product ProductId="bp_pack_3" ProductType="Consumable">
<MarketData xml:lang="en-us">
<Name>cherries3</Name>
<Price>4.55</Price>
<CurrencySymbol>$</CurrencySymbol>
<CurrencyCode>USD</CurrencyCode>
</MarketData>
</Product>
<Product ProductId="bp_pack_4" ProductType="Consumable">
<MarketData xml:lang="en-us">
<Name>cherries4</Name>
<Price>4.55</Price>
<CurrencySymbol>$</CurrencySymbol>
<CurrencyCode>USD</CurrencyCode>
</MarketData>
</Product>
<Product ProductId="bp_removeAds" ProductType="Consumable">
<MarketData xml:lang="en-us">
<Name>melons1</Name>
<Price>4.55</Price>
<CurrencySymbol>$</CurrencySymbol>
<CurrencyCode>USD</CurrencyCode>
</MarketData>
</Product>
</ListingInformation>

<LicenseInformation>
<App>
<IsActive>true</IsActive>
<IsTrial>false</IsTrial>
</App>
<Product ProductId="product1">
<IsActive>true</IsActive>
</Product>
<Product ProductId="product2">
<IsActive>false</IsActive>
</Product>
</LicenseInformation>
</CurrentApp>


Could someone help me to solve this issue?


Thanks!


No comments:

Post a Comment