tags:

views:

83

answers:

1
+1  Q: 

ASP MVC on IIS6

In our asp mvc application, we are using embedded views, images and css files. On deploying on IIS6, the views are being rendered but we are having problem with the images and css files. We are getting 404 not found error.

The same application on UltiDev Cassini Web Server is working fine. The problem seems to be with IIS6. Any kind of advice / help on this topic will be greatly appreciated.

+1  A: 

Are you telling IIS to handle all requests via the ISAPI filter? It wasnt clear if this had been done in your configuration. If not, this is needed on an MVC application in IIS6...

  1. Go into IIS manager.
  2. Select your website then properties.
  3. Home Directory
  4. Configuration

Then Insert a wildcard application map.

Set it to [star].[star] and set the executable to C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll

UNTICK "verify file exists".

That will make IIS6 push all requests for any file type through the ISAPI filter. The downside is performance but there are posts on SO to tell you how to write a better handler for your MVC application.

RemotecUk
In IIS 6 , I am unable to add the mapping that you have mentioned. But I did a wilcard mapping application mappin gbut it still doesn't help. Some how the images and css files are being handled by IIS instead of asp
anamika