在asp.net服务器上部署水晶报告 [英] deploy crystal report on asp.net server

查看:68
本文介绍了在asp.net服务器上部署水晶报告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿所有,


我创建了asp.net应用程序,其中包含我本地计算机上的水晶报表页面,它运行正常。但是当我尝试将其部署到远程服务器时,它会抛出错误。我甚至没有能够构建解决方案而不是我做得很好我找到了我们需要在Bin文件夹中包含DLL的解决方案,它包含并更新了参考。现在我能够构建解决方案,但是当我尝试运行应用程序时,它会在粗体斜体线上的水晶报表页面上抛出错误


错误:

类型初始化程序对于''CrystalDecisions.CrystalReports.Engine.ReportDocu ment''抛出异常。

代码

Hey All,

I have created asp.net application which includes crystal report page on my local machine, it works fine. but when i try to deploy it to remote server it throws error. I was not even being able to build the solution than i did good I found solutions that we need to include DLL in Bin folder, it included and updated the reference. Now I am able to build solution but when I try to run application it throws error on crystal report page on bold italic line

Error:
The type initializer for ''CrystalDecisions.CrystalReports.Engine.ReportDocu ment'' threw an exception.
code

展开 | 选择 | Wrap | 行号

推荐答案

您是否检查过服务器上是否安装了CrystalReports for .NET Framework 2.0?如果你很幸运,它就可以这么简单!


博士B
Have you checked if CrystalReports for .NET Framework 2.0 has been installed on the server? If you''re lucky it could be as simple as that!

Dr B


谢谢,但我怎么知道呢?如果它不在服务器上,是否有必要安装在那里,我不能安装而不安装那里?


thanks but How do i find out that? if its not there on server, is it necessary to install there, cant I deploy without installing there?



你检查过CrystalReports吗? for .NET Framework 2.0已安装在服务器上?如果你很幸运,它就可以这么简单!


博士B
Have you checked if CrystalReports for .NET Framework 2.0 has been installed on the server? If you''re lucky it could be as simple as that!

Dr B


我想如果检查控制面板 - 添加/删除程序,它将显示哪些.Net组件已安装。

为了安装.Net Framework 2.0的Crystal Reports,您需要创建一个安装程序遵循这些步骤:
I think if you check Control Panel - Add/Remove Programs it will display which .Net components are installed.

In order to install the Crystal Reports for .Net Framework 2.0 you need to create an installer by following these steps:
  1. 转到在Visual Studio中创建新项目
  2. 选择''其他项目类型从新建项目对话框中选择,然后选择设置和部署,然后选择
  3. 右键单击解决方案资源管理器中的项目,然后转到属性
  4. 单击''先决条件''按钮
  5. 检查.Net Framework 2.0的MDAC 2.8和Crystal Reports然后确定
  6. 编译项目和您安装的应该在release文件夹中。在部署服务器上运行.msi文件。
  1. Go to create a new project in Visual Studio
  2. Select ''Other Project Types'' from the New Project dialog box then select ''Setup and Deployment'' and Ok
  3. Right click the project in the solution explorer and go to properties
  4. Click the ''Prerequisites'' button
  5. Check both MDAC 2.8 and Crystal Reports for .Net Framework 2.0 then Ok
  6. Compile the project and your installed should be in the release folder. Run the .msi file on the deployment server.

希望这会有所帮助。


B博士

Hope this helps.

Dr B


这篇关于在asp.net服务器上部署水晶报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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