 |
|
สอบถามหน่อยครับ พอดี ทำตัว Setup แล้วโปรแกรมไปติดตั้งเครื่องลูก แล้วเปิด Report ไม่ได้ |
|
 |
|
|
 |
 |
|
สอบถามหน่อยครับ พอดี ทำตัว Setup แล้วโปรแกรมไปติดตั้งเครื่องลูก แล้วเปิด Report ไม่ได้ เครื่องลูกได้ลง Crystal Report Runtime แต่ก็ยังไม่ได้ครับ
ตอนติดตั้งโปรแกรม

ตอนส่งค่าไปเปิด Report

Error
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.TypeInitializationException: The type initializer for 'CrystalDecisions.Shared.SharedUtils' threw an exception. ---> System.BadImageFormatException: Could not load file or assembly 'log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. An attempt was made to load a program with an incorrect format.
at CrystalDecisions.Shared.SharedUtils..cctor()
--- End of inner exception stack trace ---
at CrystalDecisions.Shared.SharedUtils.get_CurrentControl()
at CrystalDecisions.Shared.SharedUtils.GetEffectiveCulture()
at CrystalDecisions.Shared.LocaleManager..ctor()
at CrystalDecisions.Windows.Forms.CrystalReportViewer.InitReportViewer()
at CrystalDecisions.Windows.Forms.CrystalReportViewer..ctor()
at ProgramDemoHR.viewreport.InitializeComponent()
at ProgramDemoHR.viewreport..ctor()
at ProgramDemoHR.Reportcard1.ShowReportCard(String id)
at ProgramDemoHR.Reportcard1.btnadd_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at DevExpress.XtraEditors.BaseButton.OnClick(EventArgs e)
at DevExpress.XtraEditors.BaseButton.OnMouseUp(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at DevExpress.Utils.Controls.ControlBase.WndProc(Message& m)
at DevExpress.XtraEditors.BaseControl.WndProc(Message& msg)
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)
Tag : .NET, Ms SQL Server 2008, Crystal Report, Win (Windows App), C#
|
ประวัติการแก้ไข 2017-03-10 08:16:21 2017-03-10 08:17:35
|
 |
 |
 |
 |
Date :
2017-03-10 08:13:12 |
By :
kittisak30 |
View :
4170 |
Reply :
8 |
|
 |
 |
 |
 |
|
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
เดาเอาน่ะครับ
System.TypeInitializationException: The type initializer for 'CrystalDecisions.Shared.SharedUtils' threw an exception. ---> System.BadImageFormatException: Could not load file or assembly 'log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. An attempt was made to load a program with an incorrect format.
เหมือนจะไม่ได้ก๊อป log4net ไปด้วย
|
 |
 |
 |
 |
Date :
2017-03-10 08:32:49 |
By :
fonfire |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
log4net ได้ใช้หรือเปล่าครับ ถ้าไม่ใช้ลบัมันออกจาก App.Config หรือ Reference เลยครับ
|
 |
 |
 |
 |
Date :
2017-03-10 09:15:57 |
By :
mr.win |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
เอาตัว CrystalDecisions.Shared.dll ติดไปด้วยครับ

|
 |
 |
 |
 |
Date :
2017-03-12 09:36:10 |
By :
paky |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ลงตัว Runtime เป็น 32 Bit ครับ
|
 |
 |
 |
 |
Date :
2017-03-13 10:24:14 |
By :
adminliver |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ขอบคุณทุกท่านครับ ได้แล้วครับ
|
 |
 |
 |
 |
Date :
2017-03-13 13:22:54 |
By :
kittisak30 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
เป็นที่ Runtime ครับ ลง 32 bit ได้เลยครับ ก่อนหน้าลง 64 bit ครับ
|
 |
 |
 |
 |
Date :
2017-03-14 09:57:58 |
By :
kittisak30 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|

|
 |
 |
 |
 |
Date :
2017-04-04 16:50:29 |
By :
mr.win |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|