2

I am running Windows 7 Prof on a VMWare Fusion 5 virtual machine hosted on Mac OSX Lion

  1. Created a new ASP.Net MVC4 WebAPI project via File New project using VS2012 Express for Web
  2. Hit F5 and the default web page displays in the browser
  3. Created a new WebSite named MyApi on IIS listening on port 90 and bound it to C:\MyApi
  4. Right clicked on the project in VS2012 and used the publish option selecting the website created above
  5. When I navigate to http://localhost:90/ instead of the default web page (from step 1) I get a 403.14 directory listing forbidden error.
  6. The new website is configured to run under MyApi App Pool that is configured to run as my logged in account.

What am I missing? How do I get MyAPI up and running.

I want to host it in IIS on Win 7 so I can call the webservice from an app running on my iPhone.

Any help highly appreciated

1 Answer 1

6

The answer to this question resolved my issue

HTTP 404 Page Not Found in Web Api hosted in IIS 7.5

<system.webServer>
    .....
    <modules runAllManagedModulesForAllRequests="true" />
    .....
</system.webServer>
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.