System.TypeInitializationException
HResult=0x80131534
Message=“CrystalDecisions.ReportSource.ReportSourceFactory”的类型初始值设定项引发异常。
Source=CrystalDecisions.Windows.Forms
StackTrace:
at CrystalDecisions.Windows.Forms.CrystalReportViewer..ctor()
at ERP.FormDataAnalyse.InitializeComponent() in D:\BaiduNetdiskDownload\C#项目开发实战入门(光盘资源)\Code\06\Project\ERP\RP\FormDataAnalyse.Designer.cs:line 31
at ERP.FormDataAnalyse..ctor() in D:\BaiduNetdiskDownload\C#项目开发实战入门(光盘资源)\Code\06\Project\ERP\RP\FormDataAnalyse.cs:line 17
at ERP.FormMain.FormMain_Load(Object sender, EventArgs e) in D:\BaiduNetdiskDownload\C#项目开发实战入门(光盘资源)\Code\06\Project\ERP\FormMain.cs:line 31
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
内部异常 1:
TypeInitializationException: “CrystalDecisions.Shared.SharedUtils”的类型初始值设定项引发异常。
内部异常 2:
FileNotFoundException: 未能加载文件或程序集“log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=692fbea5521e1304”或它的某一个依赖项。系统找不到指定的文件。