locked
Web API RRS feed

  • Question

  • User-1715638843 posted

    web api returning json works fine in local when connected through postman tool.

    But when hosted in iis it returns empty string.

    Please help

    Saturday, October 20, 2018 8:14 AM

Answers

  • User475983607 posted
    Returning an empty string mean the end point was hit, the code ran but returned unexpected results. I recommend reviewing the code and validating any inputs. Otherwise post code that reproduces the issue as we can only see what you post on the forum.
    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Saturday, October 20, 2018 1:47 PM

All replies

  • User1120430333 posted

    So you tested program against local IIS on your development machine using Visual Stuido? I am not taking about IIS Express, but rather I am talking about local IIS a real IIS on your development machine.

    Saturday, October 20, 2018 8:48 AM
  • User-1715638843 posted

    ys.it was working fine with iis express.but not working when hosting the published folder in iis server

    Saturday, October 20, 2018 8:50 AM
  • User1120430333 posted

    ys.it was working fine with iis express.but not working when hosting the published folder in iis server

    What IIS server? So you are saying that you used Visual Stuido and programmed and debugged the Web project  against the local IIS Web server, a real Web server, and not local IIS Express?

    Saturday, October 20, 2018 12:05 PM
  • User475983607 posted
    Returning an empty string mean the end point was hit, the code ran but returned unexpected results. I recommend reviewing the code and validating any inputs. Otherwise post code that reproduces the issue as we can only see what you post on the forum.
    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Saturday, October 20, 2018 1:47 PM
  • User-1715638843 posted

    It was an error.I found it

    Sunday, October 21, 2018 5:23 AM