Click here to Skip to main content
15,881,600 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
The remote server returned an error: (503) Server Unavailable.

Line 40: Dim url As String = String.Format("http://www.google.com/ig/calculator?hl=en&q={2}{0}%3D%3F{1}", fromCurrency.ToUpper(), toCurrency.ToUpper(), amount)
Line 41: Dim response As String = web.DownloadString(url)


guide me how can I solve this problem, I have a currency convertor. www.abbasiandcompany.com/currencyconvertor.aspx
Posted

Make sure that you have an active internet connection at all times!

Put a try/catch around "web.DownloadString(url)" and show a message like "Service not available" in the catch part.

When using a 3rd party service like Google you cannot solve the problem in any other way when it's not available because of missing internet connection
 
Share this answer
 
v2
Comments
hammadali 7-May-13 8:50am    
my internet is alwys working fine as you can see this error on www.abbasiandcompany.com, guide me what should I go if this error appears.
Johnny J. 7-May-13 8:57am    
In that case it must be due to overload on Googles part. Are you sending repeating requests quickly after one another?
Johnny J. 7-May-13 8:57am    
You really cannot do anything if Google decides to throw an error - it's outside of your power. Sorry to have to say that!
hammadali 7-May-13 13:52pm    
then what should I do now? how to create live currency convertor
hammadali 7-May-13 14:10pm    
my internet connection is always on rest of website is working fine
That is a problem you probably cannot solve: an explanation here[^].
 
Share this answer
 
Comments
hammadali 7-May-13 8:50am    
what is anotherway to show ? my internet is alwys working fine as you can see this error on www.abbasiandcompany.com, guide me what should I go if this error appears.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900