ฉันกำลังสร้างแอปที่ต้องเพิ่มตัวเลือกการซื้อในแอปเพื่อซื้อวิดีโอที่เลือก และเมื่อซื้อแล้ว ให้ส่งคำขอเพื่อดาวน์โหลดบนเซิร์ฟเวอร์อื่นด้วยใบเสร็จ ฉันกำลังพยายามบรรลุรายการตัวเลือกที่มีให้ซื้อด้วยรหัสที่ตกลงมา--
try
{
ListingInformation ProdList = await CurrentApp.LoadListingInformationAsync();
lbProductsList.Items.Clear();
string t = "";
foreach (var item in ProdList.ProductListings)
{
t = string.Format("{0}, {1}, {2},{3}, {4}",
item.Key,
item.Value.Name,
item.Value.FormattedPrice,
item.Value.ProductType,
item.Value.Description);
lbProductsList.Items.Insert(0, t);
}
}
catch (Exception ex)
{
MessageBox.Show("Error: " + ex.Message);
}
รหัสบรรทัด - ListingInformation ProdList = รอ CurrentApp.LoadListingInformationAsync(); ปัญหาในการสร้างและการควบคุมไปที่ catch block ที่แสดงข้อความแสดงข้อผิดพลาด -
ธุรกรรมที่ชัดเจนถูกยกเลิกโดยการบังคับ (ข้อยกเว้นจาก HRESULT: 0x8032000F)
และเมื่อใช้รหัสผลิตภัณฑ์ที่ลงทะเบียนแล้วจะแสดงข้อผิดพลาดที่ตกลงมา--
System.Exception: Exception from HRESULT: 0x805A0194
ที่ System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (งานงาน) ที่ System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (งานงาน) ที่ System.Runtime.CompilerServices.TaskAwaiter`1.GetResult() ที่ IAP.MainPage.d__1.MoveNext ()
ใครก็ได้ช่วยบอกหน่อยว่ามีปัญหาอะไร ฉันใช้ App Id ที่ลงทะเบียนเพื่อโหลดข้อมูลแต่ทำไม่ได้
ความช่วยเหลือใด ๆ ที่ดีสำหรับฉัน ขอบคุณ.