我已按照imageresizer的故障排除方式查看图片未显示的位置,如下所示: 可能的原因:
You are using the .jpg.ashx syntax, and you did not register the HttpModule properly in both places of your Web.config file.
You are using the .jpg.ashx syntax, but you're not using a query string. You should drop the '.ashx' unless you actually want to process the file.
You are using ASP.NET MVC, but do not have the MvcRoutingShim plugin installed.
You have Precompilation enabled, and are using an image provider. This is caused by a long-standing bug in the .NET framework.
但是,一切都在我的本地开发环境中完美运行。我安装了MvcRoutingShim插件和所有正确的web.config引用。在实际站点上,找不到仅由查询字符串或RemoteReaderPlugin.Current.CreateSignedUrl过程引用的所有图像。
所有图片都会导致404错误。
有什么想法吗?
答案 0 :(得分:0)
答案:DiskCache(ConfigurationError):不工作:您的NTFS安全权限阻止应用程序写入磁盘缓存 请授予用户对目录“C:\ inetpub \ wwwroot {site} \ imagecache”的读写权限以更正问题。您可以通过右键单击上述文件夹并选择“属性”,然后选择“安全性”来访问NTFS安全性设置。