CrystalDecisions.CrystalReports.Engine.ReportDocument [英] CrystalDecisions.CrystalReports.Engine.ReportDocument

查看:126
本文介绍了CrystalDecisions.CrystalReports.Engine.ReportDocument的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨朋友们,



我已经部署了一个VB.net应用程序,里面有水晶报告。
应用程序运行良好,但是当我用Crystal
报表打开表单时,它给出了我的错误。请帮助



有关调用

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


**************异常文本**************

系统.InvalidOperationException:创建表单时出错。
有关详细信息,请参阅Exception.InnerException。错误是:'CrystalDecisions.CrystalReports.Engine.ReportDocument'
类型
初始值设定项引发异常。 ---> System.TypeInitializationException:

类型初始化程序'CrystalDecisions.CrystalReports.Engine.ReportDocument'抛出
异常。 ---> System.IO.FileNotFoundException:无法加载文件
或程序集'CrystalDecisions.ReportAppServer.CommLayer,
Version = 10.2.3600.0,Culture = neutral,PublicKeyToken = 692fbea5521e1304'
或其依赖项之一。系统找不到指定的文件。

文件名:'CrystalDecisions.ReportAppServer.CommLayer,Version = 10.2.3600.0,Culture = neutral,PublicKeyToken = 692fbea5521e1304'

at CrystalDecisions.CrystalReports .Engine.ReportDocument..cctor()



WRN:程序集绑定日志记录已关闭。

要启用程序集绑定失败日志记录,请设置注册表值[HKLM\Software\Microsoft\Fusion!EnableLog](DWORD)为1.

注意:程序集绑定失败日志记录会导致性能损失。

转关闭此功能,删除注册表值[HKLM \Software\Microsoft\Fusion!EnableLog]。



---内部异常堆栈跟踪结束--- < br>
在CrystalDecisions.CrystalReports.Engine.ReportDocument..ctor()

at CrystalDecisions.CrystalReports.Engine.ReportClass..ctor()

at RayInvoice.InvoicePrint ..ctor()

at RayInvoice.Form1.Initial izeComponent()

at RayInvoice.Form1..ctor()

---内部异常堆栈跟踪结束---

at RayInvoice.My。 MyProject.MyForms.Create__Instance __ [T](T Instance)

at RayInvoice.invoice.Button3_Click(Object sender,EventArgs e)

at System.Windows.Forms.Control.OnClick( EventArgs e)

在System.Windows.Forms.Button.OnClick(EventArgs e)

在System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
$ b System.Windows.Forms.Control.WmMouseUp上的$ b(消息& m,MouseButtons按钮,Int32点击)

在System.Windows.Forms.Control.WndProc(消息& m)

在System.Windows.Forms.ButtonBase.WndProc(消息& m)
System.Windows.Forms.Button.WndProc(Message& m)中的


System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)中的
>
在System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

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





**************已加载的装配*********** ***

mscorlib

汇编版本:2.0.0.0

Win32版本:2.0.50727.42(RTM.050727-4200)

CodeBase:file:/// C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll

----------------- -----------------------

RayInvoice

汇编版本:1.0.0.0

Win32版本:1.0.0.0

CodeBase:file:/// C:/Program%20Files/.NET/Pal/RayInvoice.exe

--------------------- -------------------

Microsoft.VisualBasic

汇编版本:8.0.0.0

Win32版本:8.0.50727.42(RTM.050727-4200)

CodeBase:
file:/// C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft。 VisualBasic.dll

----------------------------------------

System.Windows.Forms

汇编版本:2.0.0.0

Win32版本:2.0.50727.42(RTM.050727-4200)

CodeBase:
file:/// C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

--- -------------------------------------

系统

汇编版本:2.0.0.0

Win32版本:2.0.50727.42(RTM.050727-4200)

CodeBase:file:/// C:/ WINDOWS / assembly / GAC_MSIL /System/2.0.0.0__b77a5c561934e089/System.dll

----------------------------------------

系统.Drawing

汇编版本:2.0.0.0

Win32版本:2.0.50727.42(RTM.050727-4200)

CodeBase:file:/// C :/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

--------------------- -------------------

System.Runtime.Remoting

汇编版本:2.0.0.0

Win32版本:2.0.50727.42(RTM.050727-4200)

CodeBase:
file:/// C:/WINDOWS/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0 __b77a5c561934e089 / System.Runtime.Remoting.dll

---------------------------------- ------

System.Data

汇编版本:2.0.0.0

Win32版本:2.0.50727.42(RTM.050727-4200)< br>
CodeBase:file:/// C:/WINDOWS/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll

------- ---------------------------------

System.Transactions

汇编版本:2.0.0.0

Win32版本:2.0.50727.42(RTM.050727-4200)

CodeBase:
file:/// C: /WINDOWS/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll

---------------------- ------------------

System.EnterpriseServices

汇编版本:2.0.0.0

Win32版本:2.0.50727.42(RTM.050727-4200)

CodeBase:
file:/// C:/WINDOWS/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices .dll

---------------------------------------- < br>
System.Configuration

汇编版本:2.0.0.0

Win32版本:2.0.50727.42(RTM.050727-4200)

CodeBase :
file:/// C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

---------- ------------------------------

System.Xml

汇编版:2.0.0.0

Win32版本:2.0.50727.42(RTM.050727-4200)

CodeBase:file:/// C:/WINDOWS/assembly/GAC_MSIL/System.Xml /2.0.0.0__b77a5c561934e089/System.Xml.dll

-------------------------------- --------

CrystalDecisions.Windows.Forms

汇编版本:10.2.3600.0

Win32版本:10.2.51014.0

CodeBase:file:/// C:/Program%20Files/.NET/Pal/CrystalDecisions.Windows.Forms.DLL

-------------- --------------------------

CrystalDecisions.CrystalReports.Engine

汇编版本:10.2。 3600.0

Win32版本:10.2.51014.0

CodeBase:file:/// C:/Program%20Files/.NET/Pal/CrystalDecisions.CrystalReports.Engine.DLL

----------------------------------------

CrystalDecisions.Shared

汇编版本:10.2.3600.0

Win32版本:10.2.51014.0

CodeBase:file:/// C:/ Program%20Files /.NET/Pal/CrystalD ecisions.Shared.DLL

-------------------------------------- -

CrystalDecisions.ReportSource

汇编版本:10.2.3600.0

Win32版本:10.2.51014.0

CodeBase:file:/ //C:/Program%20Files/.NET/Pal/CrystalDecisions.ReportSource.DLL

------------------------ ----------------

System.Web

汇编版本:2.0.0.0

Win32版本:2.0 .50727.42(RTM.050727-4200)

CodeBase:file:/// C:/WINDOWS/assembly/GAC_32/System.Web/2.0.0.0__b03f5f7f11d50a3a/System.Web.dll

----------------------------------------



************** JIT调试**************

启用just-in- time(JIT)调试,此
应用程序或计算机(machine.config)的.config文件必须在system.windows.forms部分中设置

jitDebugging值。 br>
应用程序也必须使用调试编译

启用。



例如:



< configuration>

< system.windows.forms jitDebugging =" true" />

< / configuration>



启用JIT调试后,任何未处理的异常

将被发送到JIT调试器在计算机上注册

而不是由此对话框处理。






Hi friends,

i have deploy a VB.net application which have crystal report in it. the application is running well but when i open the form with Crystal report its giving me error. Please help

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.InvalidOperationException: An error occurred creating the form. See Exception.InnerException for details.  The error is: The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception. ---> System.TypeInitializationException: The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly 'CrystalDecisions.ReportAppServer.CommLayer, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.
File name: 'CrystalDecisions.ReportAppServer.CommLayer, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304'
   at CrystalDecisions.CrystalReports.Engine.ReportDocument..cctor()

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].

   --- End of inner exception stack trace ---
   at CrystalDecisions.CrystalReports.Engine.ReportDocument..ctor()
   at CrystalDecisions.CrystalReports.Engine.ReportClass..ctor()
   at RayInvoice.InvoicePrint..ctor()
   at RayInvoice.Form1.InitializeComponent()
   at RayInvoice.Form1..ctor()
   --- End of inner exception stack trace ---
   at RayInvoice.My.MyProject.MyForms.Create__Instance__[T](T Instance)
   at RayInvoice.invoice.Button3_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)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
RayInvoice
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files/.NET/Pal/RayInvoice.exe
----------------------------------------
Microsoft.VisualBasic
    Assembly Version: 8.0.0.0
    Win32 Version: 8.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Runtime.Remoting
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
System.Data
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Transactions
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
System.EnterpriseServices
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------
System.Configuration
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
CrystalDecisions.Windows.Forms
    Assembly Version: 10.2.3600.0
    Win32 Version: 10.2.51014.0
    CodeBase: file:///C:/Program%20Files/.NET/Pal/CrystalDecisions.Windows.Forms.DLL
----------------------------------------
CrystalDecisions.CrystalReports.Engine
    Assembly Version: 10.2.3600.0
    Win32 Version: 10.2.51014.0
    CodeBase: file:///C:/Program%20Files/.NET/Pal/CrystalDecisions.CrystalReports.Engine.DLL
----------------------------------------
CrystalDecisions.Shared
    Assembly Version: 10.2.3600.0
    Win32 Version: 10.2.51014.0
    CodeBase: file:///C:/Program%20Files/.NET/Pal/CrystalDecisions.Shared.DLL
----------------------------------------
CrystalDecisions.ReportSource
    Assembly Version: 10.2.3600.0
    Win32 Version: 10.2.51014.0
    CodeBase: file:///C:/Program%20Files/.NET/Pal/CrystalDecisions.ReportSource.DLL
----------------------------------------
System.Web
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Web/2.0.0.0__b03f5f7f11d50a3a/System.Web.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.



推荐答案

我遇到同样的问题。

I have the same problem.

任何帮助?


这篇关于CrystalDecisions.CrystalReports.Engine.ReportDocument的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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