Deploying ASP.Net MVC 4 application to IIS 6 – Bundles are not working

asp.net-mvcdeploymentiis-6

We have a ASP.Net MVC 4 application we are trying to deploy to a Windows 2003 machine running IIS 6. We have it running on a separate app pool and it is setup to use asp.net 4.0. We have a Wildcard application mapping to aspnet_isapi.dll which was required to get the page to appear.

The problem we've ran into now is that the bundling which is part of asp.net mvc 4 isn't working. When you try to follow the /js?v=ASDfljkFSDlkjDSF link you get a 404 returned to you.

We know it uses extensionless urls but these should be handled by the Wildcard application mapping if I'm not mistaken?

Has anyone got this working or have any ideas?

Best Answer

I know this was a while back but I had this issue on an web forms app using bundle tables. It worked as it's own site and didn't under a virtual directory. IIS had no idea where to get the bundles (as ShaneC said).

In the properties of the virtual directory --> Configuration --> Mappings I inserted a wildcard entry to "C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" and unchecked the verify that file exists.

This worked for me.