Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deployed ASP.NET MVC 4 Project Won't Run

I deployed an ASP.NET MVC 4 project to my testing server, but it does not seem to run.

Attempting to access the project URL on IIS 7 after deployment attempts to list the directory contents. Checking the folders reveals that all assemblies have been deployed. Enabling directory browsing actually lists the files in the directory and can serve static files.

It's as if my .NET 4.0 application pool is not routing any requests to the controllers.

What could be causing this?

like image 614
Petrus Theron Avatar asked Jan 19 '12 13:01

Petrus Theron


2 Answers

Solution

Found the solution out of sheer luck, which is setting runAllManagedModulesForAllRequests to true in web.config:

<system.webServer>
    <modules runAllManagedModulesForAllRequests="true" />
    ...
</system.webServer>
like image 122
Petrus Theron Avatar answered Oct 02 '22 00:10

Petrus Theron


I had this exact problem the other day when starting a new project on a new machine. Then I found this question and all of my wildest dreams came true.

like image 25
Nick Larsen Avatar answered Oct 01 '22 23:10

Nick Larsen