Last post Jan 29, 2016 03:33 AM by Weibo Zhang
Dec 09, 2015 05:57 PM|Sic|LINK
I am new to web api aplications. I have made a new web api service and on localhost it works just fine and returns json on link:
but when i deploy it on my website that is windows hosted with support for asp.net it returns me an error 404 on link
Why is this and what am i missing? Is it the IIS settings on website, because my host is only letting me use simple control panel for my website where i cannot configure IIS?
Dec 09, 2015 06:02 PM|bobj181|LINK
Do you have access to the Server it's self? The best and easiest way, that I know of, is to go to the Server, open IIS, and navigate to the Web Site/Application and click on browse the website from there. This will assist you in getting the exact path.
Just replace localhost with your domain.
If not, which means you are hosting with a 3rd party, you can try to determine this from your FTP connection, just find out where the root of the web site is and trace up.
If you are using the a 3rd party and are still having issue, I would contact them.
Dec 09, 2015 06:16 PM|Sic|LINK
I am using a 3rd party host/provider.
I can see my deployed files in root of www.website.com/www folder Global.asax,packages.config,Web.config,service.html page and bin folder in root of website.
So i only call www.website.com/api/controller as /api/controller are my rooting settings and it only returns me 404 error. If i call index.html that is in the same folder it works on
Jan 29, 2016 03:33 AM|Weibo Zhang|LINK
I assume you host all of you project files under the “www” folder. If so, you could try to call the “www.website.com/www/API/Controller” to check it could return your expected result.
Besides, dose the ”index.html” also in the “www” folder and you could access it by “www.website.com/index.html”? Does the “Inde.html” is your own file?