我该如何解决这个水晶报告错误?

发布于 2024-12-11 12:05:24 字数 870 浏览 0 评论 0原文

我刚刚完成网络应用程序的开发。我试图部署它来测试它。当我这样做时,它首先给我水晶报告相关程序集丢失错误,然后我将所有 Cr 程序集从我的 GAC 取出到垃圾箱,重新发布并重新部署我的应用程序@ someee.com

现在错误消失了,但随后它开始给我以下内容错误:

“/”应用程序中的服务器错误。 尝试加载 Crystal Reports 运行时时发生错误。

Crystal Reports 注册表项权限不足或 Crystal Reports 运行时安装不正确。

请安装适当的 Crystal Reports 可再发行组件 (CRRedist*.msi),其中包含所需的正确 Crystal Reports 运行时版本(x86、x64 或 Itanium)。请访问 http://www.businessobjects.com/support 了解更多信息。

我的网络应用程序中的所有其他页面都可以完美打开,但只有一个页面引发上述错误。即当用户单击一页上的“生成报告”按钮时。该按钮实际上加载报表并在同一页面的 Crystal 报表查看器中显示它。它在我的本地服务器上完美运行。

我的应用程序使用 2008 R2 DB 服务器(也部署在 somee.com 上),CR 程序集版本 = 10.5.3700.0,它是一个 ASP.net Web 应用程序 @ 3.5 .Net 框架。

我知道如果我要安装 CR 运行时包,那么错误就会消失,但我不能选择该选项,因为我没有到我的 Web 服务器的远程桌面连接,因为它是免费的。 (www.somee.com)

有人可以帮我解决这个问题吗?

I have just completed developing my web application. I was trying to deploy it to test it. When i was doing that It first gave me crystal reports related assemblies missing error then I took all Cr assemblies from my GAC to the bin, republished and redeployed my application @ someee.com

Now that error was gone but then It started giving me the following error:

Server Error in '/' Application.
An error has occurred while attempting to load the Crystal Reports runtime.

Either the Crystal Reports registry key permissions are insufficient or the Crystal Reports runtime is not installed correctly.

Please install the appropriate Crystal Reports redistributable (CRRedist*.msi) containing the correct version of the Crystal Reports runtime (x86, x64, or Itanium) required. Please go to http://www.businessobjects.com/support for more information.

All the other pages in my web app are opening perfectly but there is only one page which throws the above mentioned error. That is when the user clicks 'generate report' button on one page. This button actually loads the report and shows it in the Crystal report viewer on the same page. It works perfectly on my local server.

My application uses 2008 R2 DB server(also deployed on somee.com) , CR assemblies version = 10.5.3700.0 and it is an ASP.net web application @ 3.5 .Net framework.

I know that if I will install a CR run time package then the error will go but i cannot take that option as I don't have a remote desktop connection to my web server because it's free one. (www.somee.com)

Can someone help me with this issue?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

仙女山的月亮 2024-12-18 12:05:24

您需要按照建议在服务器上实际安装 CR 运行时,因为除了 .net dll 之外,服务器上还需要设置本机库和注册表项。

并非所有托管站点都支持 CR,因此您需要寻找其他也提供 CR 的托管提供商。

You need to actually install the CR runtime on the server as suggested because there are native libraries and registry keys to be set on the server apart from the .net dlls.

Not all hosting sites support CR so you need to find some other hosting provider that also offers CR.

情愿 2024-12-18 12:05:24

您好,这也是我的问题.. 当我搜索时.. 我找到了这个解决方案

1) 转到任何安装了水晶报表运行时引擎的计算机上的 C\inetpub\wwwroot 文件夹。出于我的目的,我只是访问了我正在安装的 2008 年服务器上的服务器。

2)复制wwwroot目录下的aspnet_client文件夹。

3)将此文件夹粘贴到网站目录文件夹中。我认为这也适用于从虚拟目录创建的 Web 应用程序,只需将其粘贴到虚拟目录中即可。

您可以通过创建所有必要的文件夹和子文件夹,然后将每个文件复制到开发计算机上的 Web 应用程序项目中来避免这种情况,以便将它们包含在已发布、编译的 Web 应用程序中。如果这令人困惑,只需在部署环境中执行上述步骤即可。

感谢代码项目 jasonHall

希望它对您有用

Hello this is also my problem.. and as i search .. i found this solution

1) Go to the C\inetpub\wwwroot folder on any machine that has either/or crystal report runtime engine installations. For my purposes, I just went to the one on the 2008 server I'm installing on.

2) Copy the aspnet_client folder in the wwwroot directory.

3) Paste this folder in the website directory folder. I assume this would work with a web application that was created from a virtual directory as well, just paste it into the virtual directory.

You may be able to avoid this by creating all of the necessary folders and sub folders, then copying over each file into your web application project on your development machine, in order to include them in your published, complied web application. If this is confusing, just perform the steps above in the deployment environment.

Credits to jasonHall of code project

hope it works for you

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文