Click here to Skip to main content
15,890,512 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have hosted mvc 5 application in iis,
Normal controller pages work fine,
but if there are any web api being used , the api is not called correctly, it throws a 404 error.

For ex : My application is located at http://localhost/Publish folder.

Please suggest why is the api path not being recognised as expected.
The browser is checking for an api at : http://localhost/api/chartsapi/3
but it is not able to get this so it shows 404.
But the api is located at : http://localhost/Publish/api/chartsapi/3.

But this works fine in local

Please Suggest.
Posted
Updated 2-Dec-15 22:03pm
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900