Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deploying ASP.NET Web API to IIS Server

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

like image 994
jkruer01 Avatar asked Oct 05 '12 20:10

jkruer01


1 Answers

Ok, I figured out the problems.

  1. I didn't have .Net 4.0 installed on this server so I installed it.

  2. I registered .Net 4.0 with IIS

  3. I set this website to use .Net 4.0

  4. 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

like image 77
jkruer01 Avatar answered Oct 04 '22 22:10

jkruer01