ASP MVC IIS6上 [英] ASP MVC on IIS6

查看:122
本文介绍了ASP MVC IIS6上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我们的ASP MVC应用程序,我们使用的是嵌入式的意见,图像和CSS文件。
上IIS6部署,意见被渲染,但我们正与图像和CSS文件的问题。我们正在404未找​​到错误。

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.

UltiDev卡西尼Web服务器上的同一个应用程序工作正常。这个问题似乎是IIS6。关于这个主题任何形式的咨询/帮助将不胜AP preciated。

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.

推荐答案

您告诉I​​IS处理通过ISAPI筛选器的所有要求?如果这已经在你的配置已经完成它不是明确的。如果不是,这是需要在IIS6 MVC应用程序...

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. 进入IIS管理器。

  2. 选择您的网站,那么属性。

  3. 主目录

  4. 配置

然后插入一个通配符应用程序映射。

Then Insert a wildcard application map.

其设置为[明星] [明星]并设定可执行到C:\\ WINDOWS \\ Microsoft.NET \\框架\\ V2.0.50727 \\ ASPNET_ISAPI.DLL

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

勾去掉检查文件是否存在。

这将使IIS6推动通过ISAPI筛选器的任何文件类型的所有请求。缺点是性能,但也有对SO帖子告诉大家如何写一个更好的处理你的MVC应用程序。

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.

这篇关于ASP MVC IIS6上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆