Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Web application: site works on IDE and not on a public server

I have an old site that I left a few months ago and it worked fine, but I decided not to upload it to a real server because I wasn't sure at the time if it was worth it.

Now I have finally decided what I want to do, so I uploaded the site to a free public server but I get an error that I don't get while launching that site with Visual Studio 2010.

This is the link for one of the pages:

http://aspspider.org/thesamy3/MainPages/AluminumPage.aspx

Where you see the error there is supposed to be an iFrame that shows a photo gallery that I get from Flicker with the Flicker.Net API.

Any ideas why this could have happened now?

like image 653
samy Avatar asked Jan 31 '26 10:01

samy


2 Answers

[WebException: The remote name could not be resolved: 'api.flickr.com']

Your web host does not allow you to connect to other servers.

like image 50
SLaks Avatar answered Feb 02 '26 01:02

SLaks


Does your webserver have a firewall that prevents it from connecting to remote resources?

Looks like it can't reach api.flickr.com.

You can write a test page that does a simple request to test:

// Create a new 'Uri' object with the specified string.
Uri myUri =new Uri("http://www.contoso.com");
// Create a new request to the above mentioned URL.    
WebRequest myWebRequest= WebRequest.Create(myUri);
// Assign the response object of 'WebRequest' to a 'WebResponse' variable.
WebResponse myWebResponse= myWebRequest.GetResponse();
like image 39
rick schott Avatar answered Feb 02 '26 00:02

rick schott



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!