Deploy ASP.NET Web API for IIS Server

I developed my first web API and am trying to deploy it on my QA server. I created a website in IIS called qa.mysite.com. I have deployed my web API in this folder and am trying to run it.

When I debug a 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? Failed to load the correct files?

When I look in my folder, I deployed my web API to see the following elements:

Folders: bin, Content, Images, Scripts, Views Files: favicon.ico, Global.asax, packages.config, Web.config

+7
source share
1 answer

Ok, I got the problem.

  • I did not have .Net 4.0 installed on this server, so I installed it.

  • I registered .Net 4.0 using IIS

  • I installed this website to use .Net 4.0

  • IIS6 works in this field, so I followed the recommendations in this article to get the ASP.Net Web API to work with IIS6 ASP.Net MVC in passing IIS6

+10
source

All Articles