none
retrieving online data with a wcf service RRS feed

  • Question

  • Hi,

    I'm facing a problem using a wcf service which use an API to retrieve data from yahoo finance.

    Indeed, when the web service calls the API method which should retrieve the data, I keep getting the following error :

    "An exception occurred during a WebClient request."

    I think that the reason is because the API goes online to retrieve some data but wcf won't allow the connection.

    Can you help me with that issue,

    Thank you

    Saturday, April 12, 2014 12:47 PM

Answers

All replies

  • You're going to have to show us some of your code and what you've specified in the Config file. Also, I think that this question would most likely be answered better in the WCF forum, so if you don't mind, I'm going to move it there.

    ~~Bonnie DeWitt [C# MVP]

    http://geek-goddess-bonnie.blogspot.com

    Saturday, April 12, 2014 10:17 PM
    Moderator
  • we need more details / code to actually help you. however, lets rule this out:

     - make sure this is not an file access issue: make sure you are accessing files in My Documents instead of C: or so

    hope this helps!

    Sunday, April 13, 2014 4:54 AM
  • Hi,

    The following thread is just the same as yours, and it was solved by running visual studio as Administrator, please try to check it:
    #Retrieving online data with a wcf service:
    http://stackoverflow.com/questions/23029660/retrieving-online-data-with-a-wcf-service .


    Best Regards,
    Amy Peng

    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Tuesday, April 15, 2014 9:09 AM
    Moderator