I'm testing iphone application via xCode both simulation and on iphone device. On the simulation, there is no problem, but when running on the iphone device, NSURLConnection fails, connection:didFailWithError: method called.
What can be the reason for this problem?