2

I want to publish a Web Service created with Web Api 2 MVC5(this is my first time), in IIS 7. Following this tutorial, after doing "Publish..." in Visual Studio for my web service, this is my publish folder: Publish folder image

Then I tried to Add a Web Site in the IIS Express exactly as it is done in the tutorial, and after that when I Browse it, I got a HTTP 403 Error.

Also, I test with Fiddler a POST method and I get 404 HttpNotFound.

Update: Additionally, I follow step by step this tutorial and when I tried to test the route mapping, I get 404 HttpNotFound.

What am I missing? Thanks in advance for any help

Ignacio Gómez
  • 1,587
  • 4
  • 23
  • 41
Sberrueta
  • 53
  • 6

2 Answers2

1

Requisites

Also verify that you have installed HTTP Platform Handler version 1.2. You can download it here

Publishing

When publishing your site be sure to point into wwwroot folder (check this post)

Community
  • 1
  • 1
Ignacio Gómez
  • 1,587
  • 4
  • 23
  • 41
0

First check that .Net 4.5 is installed on server or not .Please use aspnet_regiis -i command to install .Net4.5 server on iis.Also make sure there is an entry in your web config

<system.webServer>

Dharam
  • 1
  • 2
  • I checked and verified that I have .NET 4.5 installed and also the entry in web config, do you have any other suggestions? – Sberrueta Mar 01 '16 at 12:41