iphone in app purchase "Cannot connect to iTunes Store"

nik picture nik · Mar 30, 2011 · Viewed 19.6k times · Source

Possible Duplicate:
iPhone Store Kit “Cannot connect to iTunes Store”

i am implementing in app purchase when i requesting the payment am getting bellow error.

Transaction Error: Error Domain=SKErrorDomain Code=0 "Cannot connect to iTunes Store" UserInfo=0x2dcf40 {NSLocalizedDescription=Cannot connect to iTunes Store}

Here some times the error code will be 1004. so i cant do the transaction.

in some times it displaying a warning like " has failed the purchase process." ,but still the purchase process is working fine..

am i doing something wrong... or any solution for this problem..?

Thanks

Answer

Matt picture Matt · Jul 6, 2011

There are several recommendations in this discussion: http://www.everythingicafe.com/forum/threads/cannot-connect-to-itunes-store.11586/

Thought most I tried were unsuccessful. I had the best luck signing out of my test account and trying again.

iPad/iPhone -> Setting -> Store -> (select account) -> Sign Out

Then try again.