locked
Unable to connect to the remote server - Deployment Only RRS feed

  • Question

  • User750074654 posted

    I have a web application that works fine in development, and worked fine in my hosted environment but now I have my own server I cannot get it to connect to an online API. This is the website I am trying to access (it delivers custom QR codes):

    http://api.qrserver.com/v1/create-qr-code/?size=150x150&data=Example

    From my desktop it is fine, from within a browser on the server I can access it fine, but in my code I am trying to get the image into the iTextSharp plugin which is creating my pdf files. The pdf constructs fine but when trying to access this online API for a QR code the server sits there for a while, then gives up and the pdf is delivered minus the qr code.

    Here is the line of code that tries to get the image:

    Dim QRImageFile As iTextSharp.text.Image = iTextSharp.text.Image.GetInstance(ImageUrl)

    Does anyone know what might be happening (could be a firewall setting but not sure which one?) please?

    Saturday, January 19, 2013 9:50 AM

All replies

  • User-1716253493 posted

    try give full permission to the imgurl folder for everyone user

    Saturday, January 19, 2013 10:17 AM
  • User750074654 posted

    It's not a folder, it's an external, online API

    Sunday, January 20, 2013 8:42 AM