locked
issues when calling Web API from HTM page RRS feed

Answers

  • User-84896714 posted

    Hi IGotYourDotNet,

    According to your description, your web api can't be invoke from the same computer use hostname? It can be access by other computer. By check the another thread, I saw your web api url is http://servername:2020/api/GetJobs. I suggest you change your web api url to IP address format. like this http://num.num.num.num:2020/api/GetJobs

    Best Regards,
    Wang Li

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, September 16, 2015 1:29 AM

All replies

  • User-84896714 posted

    Hi IGotYourDotNet,

    Did you call the two html pages in the same machine and could you show any error messages when you use servername?

    Best Regards,
    Wang Li

    Monday, September 14, 2015 11:04 PM
  • User-2051535749 posted

    Yes, there are no error messages returned to me. I ran dev tools and saw now errors coming back

    Tuesday, September 15, 2015 7:07 AM
  • User-84896714 posted

    Hi IGotYourDotNet,

    According to your description, your web api can't be invoke from the same computer use hostname? It can be access by other computer. By check the another thread, I saw your web api url is http://servername:2020/api/GetJobs. I suggest you change your web api url to IP address format. like this http://num.num.num.num:2020/api/GetJobs

    Best Regards,
    Wang Li

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, September 16, 2015 1:29 AM
  • User1869050296 posted

    try running fiddler to see if there is any error for the request,

    also check your config regarding proxy settings

    Wednesday, September 16, 2015 5:01 AM