I am using paypal NVP api in an ecommerce website. It was working fine before but now it is throwing "System.Net.WebException: The remote name could not be resolved: 'api-3t.sandbox.paypal.com'"
Exception. I also tried api.sandbox.paypal.com but no luck. Any ideas?
Thanks
Update : Same codes works if my client runs it from his system.
This is a DNS problem, or at least, that's what the exception points to. The machine that is running your code, and failing, is not able to resolve the hostname 'api-3t.sandbox.paypal.com' to an IP address.
Potential problems, in order of likelyhood:
You could fire up a command prompt on that machine and see if normal DNS resolution works:
c:\>nslookup api-3t.sandbox.paypal.com
Server: google-public-dns-a.google.com.
Address: 8.8.8.8
Non-authoritative answer:
Name: api-3t.sandbox.paypal.com
Address: 173.0.82.83
If you want to try to bypass your institution's DNS server for testing, you can reconfigure your computer to use Google's public DNS server, 8.8.8.8.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.