locked
how to host a ASP.Net 4.72 webAPI ? RRS feed

  • Question

  • User-1679811885 posted

    hi, i had made a webApi using asp.net, using net framework 4.72.

    i tested my WebApi on my localhost using Postman and all the endpoints worked just fine.

    i published my WebApi and uploaded it to me windows host, but i can't get a response even from a test endpoint that i made.

    i'm using this url format to access my web api

    http://www.domainame.com/WebApi/controllerName/endpoint

    i'm not using ports because i'm using a basic shared windows web host, i don't have access to use remote connections, but my hosting provider told me that it was fine to run mi webApi.

    i'm receiving this error message from the host

    "IIS 10.0 Detailed Error - 500.19 - Internal Server Error"
    sorry if this is kind of newbie question, i always had used linux server, but now i'm moving to windows server to host .net Apis
    thanks in advance for all the help.
    Monday, February 15, 2021 1:32 AM

All replies

  • User1686398519 posted

    Hi daimaku, 

    Web API applications can be hosted in two ways:

    1. IIS Hosting
    2. Self Hosting

    i always had used linux server, but now i'm moving to windows server
    IIS 10.0 Detailed Error - 500.19 - Internal Server

    Based on the information you provided, it looks like you are using IIS Hosting.

    There may be many reasons for receiving the IIS 10 500 internal server error.

    1. I want to confirm to you whether IIS and ASP.NET modules are installed.
    2. If they are not installed, this error will occur.

    You can click this link to see how to host ASP.NET Web API REST service on IIS 10.

    Best Regards,

    YihuiSun

    Tuesday, February 16, 2021 1:52 AM