I developed my first Web API and am trying to deploy it to my QA server. I created a website in IIS called qa.mysite.com. I deployed my Web API to this folder and am trying to run it.
When I debug the site locally and go to
http://localhost:3735/api/Bid_Received
it works correctly. However, when I go to
http://qa.mysite.com/api/Bid_Received
I get a 404 error.
What am I doing wrong? Did I not upload the correct files?
When I look in my folder that I deployed my web API to I see the following items:
Folders: bin, Content, Images, Scripts, Views Files: favicon.ico, Global.asax, packages.config, Web.config
Ok, I figured out the problems.
I didn't have .Net 4.0 installed on this server so I installed it.
I registered .Net 4.0 with IIS
I set this website to use .Net 4.0
This box was running IIS6 so I followed the advice in this article to get ASP.Net Web API to work with IIS6 ASP.Net MVC on IIS6 Walkthrough
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With