首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Crystal Report异常

Crystal Report异常
EN

Stack Overflow用户
提问于 2013-01-29 21:21:17
回答 1查看 459关注 0票数 0

我已经用Crystal Reports 10开发了一个项目,并开发了一个可以很好地生成pdf文件的安装程序,但是当我在任何其他机器上安装这个应用程序并尝试运行pdf生成时,我得到了这个异常:

有关调用实时(JIT)调试而不是此对话框的详细信息,请参阅此消息的末尾。

代码语言:javascript
复制
************** Exception Text **************
System.IO.FileNotFoundException: Could not load file or assembly 'CrystalDecisions.CrystalReports.Engine, Version=10.0.3300.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.
File name: 'CrystalDecisions.CrystalReports.Engine, Version=10.0.3300.0, Culture=neutral, PublicKeyToken=692fbea5521e1304'
at WindowsApplication1.frmPaySlip.ShowReportSalaryStatement(DataSet ds, String toadd, String rep)
at WindowsApplication1.frmPaySlip.pdfgenerator(String rep, String toadd)
at WindowsApplication1.frmPaySlip.btnOK_Click(Object sender, EventArgs e)

at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

我尝试了几乎所有我在网上找到的可能性,但都不能解决。

EN

回答 1

Stack Overflow用户

发布于 2013-01-31 13:10:17

我解决了这个问题。水晶报表引用的是其他版本的动态链接库,所以它在机器上运行良好,对于其他机器也会抛出错误。我清除了所有的参考,并重新参考了水晶报表的所有动态链接库,并重建了设置,现在它工作正常

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/14583925

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档