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

9,116

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.

Share:
9,116

Related videos on Youtube

user1654002
Author by

user1654002

Updated on September 18, 2022

Comments

  • user1654002
    user1654002 over 1 year

    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?

    • Mathias R. Jessen
      Mathias R. Jessen about 12 years
      Please be a little more elaborate on the details than just "isn't working". error codes? logs?
  • user1654002
    user1654002 about 12 years
    That post assumes there is an extension in the url at some point (axd in the post). With ASP.Net 4 bundles there is no extension you can latch onto to do that kind of thing.