 |
|
ขอสอบถามเกี่ยวกับ Error ตรงนี้ครับ ช่วยดูและบอกสาเหตุและการแก้ปัญหาError ส่วนนี้ทีครับ |
|
 |
|
|
 |
 |
|
นี่คือ ข้อความ errorทั้งหมดเลยครับ
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.IO.FileNotFoundException: Could not load file or assembly 'CrystalDecisions.Windows.Forms, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.
File name: 'CrystalDecisions.Windows.Forms, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304'
at MeanCom.RP001.InitializeComponent()
at MeanCom.RP001..ctor()
at MeanCom.frmCus_Service.btPrint_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].
************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
MeanCom
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/Microsoft/Setup/MeanCom.exe
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 8.0.0.0
Win32 Version: 8.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
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.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Runtime.Remoting
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
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.4927 (NetFXspW7.050727-4900)
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.4927 (NetFXspW7.050727-4900)
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.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.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.
|
 |
 |
 |
 |
Date :
2011-11-15 17:16:15 |
By :
zuzaaman |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
มันโหลดตัว Crystal report ไม่ได้คับตอนที่ build ตัว setup ให้เอาตัว Crystal report มาด้วยคับ
|
 |
 |
 |
 |
Date :
2011-11-15 19:01:09 |
By :
Programmer ด้อยปัญญา |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ขอโทษครับ ขอถามแบบไม่อายเลยนะครับ T^T
คือว่าจะเอาตัว Crystal Report ลงไปในตัว Setup ยัง ไง หรอ ครับ ขอคำอธิบายแบบละเอียดเลยนะครับ
แบบว่าลองทำตามที่หาได้จาก อากู๋ หลายๆวิธีแล้ว แต่ Report ก็ยังไม่ขึ้นเลยครับ
บางอันก้อไม่แจ้ง error ครับแต่ว่ามันแจ้งให้ connect database ใหม่
อ่ออีกอย่างนะครับ พอดีว่าผมทำการ connect database แบบ window authentication ครับ
ช่วยชี้แนะทีนะครับ มืดทุกด้านแล้วครับ T^T
|
 |
 |
 |
 |
Date :
2011-11-16 03:06:14 |
By :
zuzaaman |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|


ทำตามรูปเลยคับ แล้วเอาตัว setup ของ Crystalreport ไปลงที่เครื่อง user ก่อน
|
 |
 |
 |
 |
Date :
2011-11-16 08:18:52 |
By :
Programmer ด้อยปัญญา |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
คือว่าตอนนี้ ไม่มี error ขึ้นมาแล้วครับ แต่ว่ามันมี popup ขึ้นมาถามเรื่องการ connect กับ Database ตามรูปเลยครับ

จะเห็นว่าตัว Servername กับ Database ไม่สามารถทำอะไรได้เลย ทั้งๆที่ผมได้ระบุตัว Database ไปตั้งแต่ทำหน้า CR แล้วครับ
พอดีว่าการconnect กับ Database นั้น ผมใช้เป็นแบบ Window Authen ครับ เพื่อง่ายต่อการใช้งานของ User ครับ
ช่วยแนะนำทีครับ หรือว่าผมจะต้องทำการสร้าง User ใน SQL
พอดีว่า User เค้าใช้งานตัว SQL ไม่เป็นเลยอ่ะครับ ช่วยแนะนำทีนะครับ
|
 |
 |
 |
 |
Date :
2011-11-16 18:15:51 |
By :
zuzaaman |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
มันผิดพลาดตรงไหนช่วยบอกด้วยนะครับ มือใหม่ครับ T^T
|
 |
 |
 |
 |
Date :
2011-11-16 18:16:28 |
By :
zuzaaman |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
น่าจะต้องระบุ connection หน้า source ด้วยน่ะค่ะ
Code (VB.NET)
Dim ConnInfo As New ConnectionInfo
With ConnInfo
.ServerName = ".sqlexpress" ' ชื่อ Server หรือ IP Address ของ Server
.DatabaseName = "db100" ' 'ชื่อฐานข้อมูล
.UserID = "user" 'ชื่อล็อกอินฐานข้อมูล
.Password = "pasword" 'รหัสผ่านฐานข้อมูล
End With
For Each cnInfo As TableLogOnInfo In Me.CrystalReportViewer1.LogOnInfo
cnInfo.ConnectionInfo = ConnInfo
Next
|
 |
 |
 |
 |
Date :
2011-11-17 11:22:53 |
By :
bangbang111 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ลองทำตามคุณ plapajung ไปแล้วนะครับปรากฏว่ายังขึ้นให้ login Database เหมือนเดิมเลยครับ
มันจะเกี่ยวกับการที่ผมใช้ connecttion เป็นแบบ window authen หรือปล่าวครับ
พอจะมีวิธีอื่นแนะนำไหมครับ ช่วยทีนะครับส่วนสุดท้ายแล้วจริงๆครับ
|
 |
 |
 |
 |
Date :
2011-11-18 13:48:43 |
By :
zuzaaman |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ลองไปแก้ connection ให้เป็น sql server authen ดูซิค่ะ แบบกำหนด user pass
crystal report ถ้าเป็น window xp ถ้าเป็น window authen ไม่ค่อยมีปัญหา แต่ถ้าสูงกว่า xp มันชอบมีปัญหาเรื่อง connect แบบที่คุณเป็น ดิฉันก็จะแก้ปัญหาโดยการกำหนด user password ไปเลยก็ไม่เจอปัญหาน่ะค่ะ ยังไงลองดูค่ะ
|
 |
 |
 |
 |
Date :
2011-11-18 13:56:13 |
By :
bangbang111 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|