水晶报表在ASP.NET MVC中不加载图像 [英] Crystal Reports Images not loading in ASP.NET MVC

查看:126
本文介绍了水晶报表在ASP.NET MVC中不加载图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用在MVC应用程序内部的一个WebForm的Crystal Reports。没有被显示在报告中的图像,但是,无论是ASP.NET开发服务器和IIS 7(上Win7x64)上。

I'm using Crystal Reports in a Webform inside of an MVC application. Images in the reports are not being displayed, however, on both the ASP.NET Development Server and IIS 7 (on Win7x64).

我从一些与此类似的是,CrystalImageHandler HTTP处理程序负责渲染图像的其他问题知道,但我已经尝试了所有的常用解决方案无济于事。

I know from a number of other questions similar to this that the CrystalImageHandler HTTP Handler is responsible for rendering the image, but I've tried all of the usual solutions to no avail.

到目前为止,我有


  1. 增加了以下我的的appSettings (通过的 http://www.mail-archive.com/bdotnet@groups.msn.com/msg26882.html

<添加键=CrystalImageCleaner-自动启动价值=真/>

<添加键=CrystalImageCleaner休眠VALUE =60000/>

<添加键=CrystalImageCleaner时代VALUE =120000/>

增加了以下的HttpHandler为的System.Web / HttpHandlers的(通过<一个href=\"http://stackoverflow.com/questions/2253682/crystal-report-viewer-control-isnt-loading-the-images-inside-the-report\" title=\"http://stackoverflow.com/questions/2253682/crystal-report-viewer-control-isnt-loading-the-images-inside-the-report\">http://stackoverflow.com/questions/2253682/crystal-report-viewer-control-isnt-loading-the-images-inside-the-report)

Added the following httpHandler to system.web/httpHandlers (via http://stackoverflow.com/questions/2253682/crystal-report-viewer-control-isnt-loading-the-images-inside-the-report)

&LT;添加动词=GET路径=CrystalImageHandler.aspxTYPE =CrystalDecisions.Web.CrystalImageHandler,CrystalDecisions.Web,版本= 12.0.2000.0,文化=中性公钥= 692fbea5521e1304 /&GT;

增加了以下我的Global.asax.cs(通过<一个href=\"http://stackoverflow.com/questions/2006011/crystal-reports-images-and-asp-net-mvc\">http://stackoverflow.com/questions/2006011/crystal-reports-images-and-asp-net-mvc)
routes.IgnoreRoute({}资源的.aspx / {*} PATHINFO);

Added the following to my Global.asax.cs (via http://stackoverflow.com/questions/2006011/crystal-reports-images-and-asp-net-mvc) routes.IgnoreRoute("{resource}.aspx/{*pathInfo}");


routes.IgnoreRoute(CrystalImageHandler.aspx);

任何想法,为什么图像还是404?

Any ideas as to why the images still 404?

推荐答案

我有类似的问题。这帮助了我。

I had similar problem. This helped me.

routes.IgnoreRoute("{*allaspx}", new { allaspx = @".*(CrystalImageHandler).*" });

这篇关于水晶报表在ASP.NET MVC中不加载图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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