0

I did create a web API using Visual Studio 2017 and .Net Framework V 4.6, it's working fine when I run it from IDE and POSTMAN, but when I deploy it on IIS 10, it's not working. please see image attached.

1. Working on IDE and Postman: Working on IDE and Postman

2.Not working when hosted on IIS 10 and browsing in browser: Not working when hosted on IIS 10 and browsing in browser

3.Not working when hosted on IIS and using POSTMAN: Not working when hosted on IIS and using POSTMAN

4. API Project structure API Project structure

Sujeetji
  • 1
  • 1
  • Welcome to stackoverflow! Your code is working, the issue you have is the deployment of your application to IIS. Here is one link [IIS 10 on Windows Server 2016 not running my ASP.NET MVC website](https://stackoverflow.com/questions/53042531/iis-10-on-windows-server-2016-not-running-my-asp-net-mvc-website) that might help you. If not, ask Google! – RobertBaron Jul 02 '19 at 20:21
  • As far as I know, 404 means the page not found. I suggest you could re-check your domain binding to make sure you have bind the right IP address for your IIS web api application. Besides, I suggest you could try to use IP address instead of domain address to access the web api. – Brando Zhang Jul 03 '19 at 09:39

0 Answers0