Antoine
Antoine

Reputation: 5255

ASP.Net MVC deployment on IIS6, why do I get a 404 after enabling wildcard mapping?

I have this ASP.NET MVC app that I've deployed on IIS6/Win2003 as a virtual directory, and I get a 404 error even after enabling wildcard mapping for aspnet_isapi.dll (as explained everywhere like http://blog.stevensanderson.com/2008/07/04/options-for-deploying-aspnet-mvc-to-iis-6/).

Why so? In fact, without enabling this, I get a 403 (forbidden), unless authorizing directory access (listing). But why do I get a 404 with mapping enabled? Is there something else to do to get it working? I have added Index.aspx in the Documents tab in IIS properties, but that doesn't change anything.

That's a very simple app, I have not modified the global.asax file at all. But I got it working on another server a few month ago without modifying it either, and I don't recall doing anything else.

Upvotes: 3

Views: 1400

Answers (1)

Antoine
Antoine

Reputation: 5255

Solution:

ASP.Net 4 was prohibited in IIS. To correct this, go to Web Services Extensions and allow it. Thanks to Brian Flynn on this one.

Upvotes: 4

Related Questions