Mình thấy VB & C# cũng tương tự nên mình post bài này mon mọi người cho ý kiến:
Mình làm chức năng Report trong VB thì bị báo lỗi " LocalProcessingException was unheandled ! -An error occurred during local report processing." tại dòng " ReportViewerDanhSachMatHang.LocalReport.SetParamet ers(parameter)"
Code:
Imports System.Collections.Generic
Imports System.ComponentModel
Imports System.Data
Imports System.Drawing
Imports System.Text
Imports System.Windows.Forms
Imports Microsoft.Reporting.WinForms
Imports DevComponents.DotNetBar
Imports QuanLyBanHang.General
Imports QuanLyBanHang.Bussiness
Imports QuanLyBanHang.Controller

Namespace Report
        Public Partial Class frmDSMatHang
        Inherits Office2007Form
        Public Sub New()
            InitializeComponent()
            DataService.OpenConnection()
        End Sub
        Private Sub frmDSMatHang_Load(ByVal sender As Object, ByVal e As EventArgs) Handles MyBase.Load
            Dim ketqua As IList(Of MatHangInfo) = MatHangCtrl.LayDsMatHang()

            Dim parameter As IList(Of ReportParameter) = New List(Of ReportParameter)()
            Dim param As ReportParameter
            param = New ReportParameter("Ngay", DateTime.Today.Day & "/" & DateTime.Today.Month & "/" & DateTime.Today.Year)
            parameter.Add(param)
            ReportViewerDanhSachMatHang.LocalReport.SetParameters(parameter)
            MatHangInfoBindingSource.DataSource = ketqua
            ReportViewerDanhSachMatHang.RefreshReport()
            ReportViewerDanhSachMatHang.SetDisplayMode(DisplayMode.PrintLayout)
        End Sub

       
    End Class
End Namespace
Khi chạy thì trong Immediate window có báo các dòng sau:
Code:
A first chance exception of type 'Microsoft.Reporting.WinForms.LocalProcessingException' occurred in Microsoft.ReportViewer.WinForms.dll
System.Transactions Critical: 0 : <TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Critical"><TraceIdentifier>http://msdn.microsoft.com/TraceCodes/System/ActivityTracing/2004/07/Reliability/Exception/Unhandled</TraceIdentifier><Description>Unhandled exception</Description><AppDomain>QuanLyBanHang.vshost.exe</AppDomain><Exception><ExceptionType>Microsoft.Reporting.WinForms.LocalProcessingException, Microsoft.ReportViewer.WinForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</ExceptionType><Message>An error occurred during local report processing.</Message><StackTrace>   at Microsoft.Reporting.WinForms.LocalReport.CompileReport()
   at Microsoft.Reporting.WinForms.LocalReport.SetParameters(IEnumerable`1 parameters)
   at QuanLyBanHang.Report.frmDSMatHang.frmDSMatHang_Load(Object sender, EventArgs e) in C:\Users\LordNguyen\Desktop\ quan-li-sieu-thi\Source\QuanLySieuThi\Report\frmDSMatHang.vb:line 26
   at System.Windows.Forms.Form.OnLoad(EventArgs e)
   at DevComponents.DotNetBar.Office2007RibbonForm.OnLoad(EventArgs e)
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl()
   at System.Windows.Forms.Control.WmShowWindow(Message&amp;amp; m)
   at System.Windows.Forms.Control.WndProc(Message&amp;amp; m)
   at DevComponents.DotNetBar.Office2007RibbonForm.WndProc(Message&amp;amp; m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&amp;amp; m)
   at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)</StackTrace><ExceptionString>Microsoft.Reporting.WinForms.LocalProcessingException: An error occurred during local report processing. ---&amp;gt; System.ApplicationException: The report definition for report 'C:\Users\LordNguyen\Desktop\ quan-li-sieu-thi\Source\QuanLySieuThi\bin\Debug\rptMatHang.rdlc' has not been specified ---&amp;gt; System.IO.FileNotFoundException: Could not find file 'C:\Users\LordNguyen\Desktop\ quan-li-sieu-thi\Source\QuanLySieuThi\bin\Debug\rptMatHang.rdlc'.
File name: 'C:\Users\LordNguyen\Desktop\ quan-li-sieu-thi\Source\QuanLySieuThi\bin\Debug\rptMatHang.rdlc'
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
   at Microsoft.Reporting.StandalonePreviewStore.GetReportDefinition(String path, Boolean isFile)
   at Microsoft.Reporting.StandalonePreviewStore.GetCompiledReport(CatalogItemContext context, Boolean rebuild, ReportSnapshotBase&amp;amp; snapshot)
   --- End of inner exception stack trace ---
   at Microsoft.Reporting.StandalonePreviewStore.GetCompiledReport(CatalogItemContext context, Boolean rebuild, ReportSnapshotBase&amp;amp; snapshot)
   at Microsoft.Reporting.LocalService.GetCompiledReport(CatalogItemContext itemContext, Boolean rebuild, ReportSnapshotBase&amp;amp; snapshot)
   at Microsoft.Reporting.LocalService.CompileReport(CatalogItemContext itemContext, Boolean rebuild)
   at Microsoft.Reporting.WinForms.LocalReport.CompileReport()
   --- End of inner exception stack trace ---
   at Microsoft.Reporting.WinForms.LocalReport.CompileReport()
   at Microsoft.Reporting.WinForms.LocalReport.SetParameters(IEnumerable`1 parameters)
   at QuanLyBanHang.Report.frmDSMatHang.frmDSMatHang_Load(Object sender, EventArgs e) in C:\Users\LordNguyen\Desktop\ quan-li-sieu-thi\Source\QuanLySieuThi\Report\frmDSMatHang.vb:line 26
   at System.Windows.Forms.Form.OnLoad(EventArgs e)
   at DevComponents.DotNetBar.Office2007RibbonForm.OnLoad(EventArgs e)
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl()
   at System.Windows.Forms.Control.WmShowWindow(Message&amp;amp; m)
   at System.Windows.Forms.Control.WndProc(Message&amp;amp; m)
   at DevComponents.DotNetBar.Office2007RibbonForm.WndProc(Message&amp;amp; m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&amp;amp; m)
   at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)</ExceptionString><InnerException><ExceptionType>System.ApplicationException, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>The report definition for report 'C:\Users\LordNguyen\Desktop\ quan-li-sieu-thi\Source\QuanLySieuThi\bin\Debug\rptMatHang.rdlc' has not been specified</Message><StackTrace>   at Microsoft.Reporting.StandalonePreviewStore.GetCompiledReport(CatalogItemContext context, Boolean rebuild, ReportSnapshotBase&amp;amp; snapshot)
   at Microsoft.Reporting.LocalService.GetCompiledReport(CatalogItemContext itemContext, Boolean rebuild, ReportSnapshotBase&amp;amp; snapshot)
   at Microsoft.Reporting.LocalService.CompileReport(CatalogItemContext itemContext, Boolean rebuild)
   at Microsoft.Reporting.WinForms.LocalReport.CompileReport()</StackTrace><ExceptionString>System.ApplicationException: The report definition for report 'C:\Users\LordNguyen\Desktop\ quan-li-sieu-thi\Source\QuanLySieuThi\bin\Debug\rptMatHang.rdlc' has not been specified ---&amp;gt; System.IO.FileNotFoundException: Could not find file 'C:\Users\LordNguyen\Desktop\ quan-li-sieu-thi\Source\QuanLySieuThi\bin\Debug\rptMatHang.rdlc'.
File name: 'C:\Users\LordNguyen\Desktop\ quan-li-sieu-thi\Source\QuanLySieuThi\bin\Debug\rptMatHang.rdlc'
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
   at Microsoft.Reporting.StandalonePreviewStore.GetReportDefinition(String path, Boolean isFile)
   at Microsoft.Reporting.StandalonePreviewStore.GetCompiledReport(CatalogItemContext context, Boolean rebuild, ReportSnapshotBase&amp;amp; snapshot)
   --- End of inner exception stack trace ---
   at Microsoft.Reporting.StandalonePreviewStore.GetCompiledReport(CatalogItemContext context, Boolean rebuild, ReportSnapshotBase&amp;amp; snapshot)
   at Microsoft.Reporting.LocalService.GetCompiledReport(CatalogItemContext itemContext, Boolean rebuild, ReportSnapshotBase&amp;amp; snapshot)
   at Microsoft.Reporting.LocalService.CompileReport(CatalogItemContext itemContext, Boolean rebuild)
   at Microsoft.Reporting.WinForms.LocalReport.CompileReport()</ExceptionString><InnerException><ExceptionType>System.IO.FileNotFoundException, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>Could not find file 'C:\Users\LordNguyen\Desktop\ quan-li-sieu-thi\Source\QuanLySieuThi\bin\Debug\rptMatHang.rdlc'.</Message><StackTrace>   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
   at Microsoft.Reporting.StandalonePreviewStore.GetReportDefinition(String path, Boolean isFile)
   at Microsoft.Reporting.StandalonePreviewStore.GetCompiledReport(CatalogItemContext context, Boolean rebuild, ReportSnapshotBase&amp;amp; snapshot)</StackTrace><ExceptionString>System.IO.FileNotFoundException: Could not find file 'C:\Users\LordNguyen\Desktop\ quan-li-sieu-thi\Source\QuanLySieuThi\bin\Debug\rptMatHang.rdlc'.
File name: 'C:\Users\LordNguyen\Desktop\ quan-li-sieu-thi\Source\QuanLySieuThi\bin\Debug\rptMatHang.rdlc'
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
   at Microsoft.Reporting.StandalonePreviewStore.GetReportDefinition(String path, Boolean isFile)
   at Microsoft.Reporting.StandalonePreviewStore.GetCompiledReport(CatalogItemContext context, Boolean rebuild, ReportSnapshotBase&amp;amp; snapshot)</ExceptionString></InnerException></InnerException></Exception></TraceRecord>
A first chance exception of type 'Microsoft.Reporting.WinForms.LocalProcessingException' occurred in Microsoft.ReportViewer.WinForms.dll
System.Transactions Critical: 0 : <TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Critical"><TraceIdentifier>http://msdn.microsoft.com/TraceCodes/System/ActivityTracing/2004/07/Reliability/Exception/Unhandled</TraceIdentifier><Description>Unhandled exception</Description><AppDomain>QuanLyBanHang.vshost.exe</AppDomain><Exception><ExceptionType>Microsoft.Reporting.WinForms.LocalProcessingException, Microsoft.ReportViewer.WinForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</ExceptionType><Message>An error occurred during local report processing.</Message><StackTrace>   at Microsoft.Reporting.WinForms.LocalReport.CompileReport()
   at Microsoft.Reporting.WinForms.LocalReport.SetParameters(IEnumerable`1 parameters)
   at QuanLyBanHang.Report.frmDSMatHang.frmDSMatHang_Load(Object sender, EventArgs e) in C:\Users\LordNguyen\Desktop\ quan-li-sieu-thi\Source\QuanLySieuThi\Report\frmDSMatHang.vb:line 26
   at System.Windows.Forms.Form.OnLoad(EventArgs e)
   at DevComponents.DotNetBar.Office2007RibbonForm.OnLoad(EventArgs e)
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl()
   at System.Windows.Forms.Control.WmShowWindow(Message&amp;amp; m)
   at System.Windows.Forms.Control.WndProc(Message&amp;amp; m)
   at DevComponents.DotNetBar.Office2007RibbonForm.WndProc(Message&amp;amp; m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&amp;amp; m)
   at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)</StackTrace><ExceptionString>Microsoft.Reporting.WinForms.LocalProcessingException: An error occurred during local report processing. ---&amp;gt; System.ApplicationException: The report definition for report 'QuanLyBanHang.Report.rptMatHang.rdlc' has not been specified
   at Microsoft.Reporting.StandalonePreviewStore.GetCompiledReport(CatalogItemContext context, Boolean rebuild, ReportSnapshotBase&amp;amp; snapshot)
   at Microsoft.Reporting.LocalService.GetCompiledReport(CatalogItemContext itemContext, Boolean rebuild, ReportSnapshotBase&amp;amp; snapshot)
   at Microsoft.Reporting.LocalService.CompileReport(CatalogItemContext itemContext, Boolean rebuild)
   at Microsoft.Reporting.WinForms.LocalReport.CompileReport()
   --- End of inner exception stack trace ---
   at Microsoft.Reporting.WinForms.LocalReport.CompileReport()
   at Microsoft.Reporting.WinForms.LocalReport.SetParameters(IEnumerable`1 parameters)
   at QuanLyBanHang.Report.frmDSMatHang.frmDSMatHang_Load(Object sender, EventArgs e) in C:\Users\LordNguyen\Desktop\ quan-li-sieu-thi\Source\QuanLySieuThi\Report\frmDSMatHang.vb:line 26
   at System.Windows.Forms.Form.OnLoad(EventArgs e)
   at DevComponents.DotNetBar.Office2007RibbonForm.OnLoad(EventArgs e)
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl()
   at System.Windows.Forms.Control.WmShowWindow(Message&amp;amp; m)
   at System.Windows.Forms.Control.WndProc(Message&amp;amp; m)
   at DevComponents.DotNetBar.Office2007RibbonForm.WndProc(Message&amp;amp; m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&amp;amp; m)
   at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)</ExceptionString><InnerException><ExceptionType>System.ApplicationException, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>The report definition for report 'QuanLyBanHang.Report.rptMatHang.rdlc' has not been specified</Message><StackTrace>   at Microsoft.Reporting.StandalonePreviewStore.GetCompiledReport(CatalogItemContext context, Boolean rebuild, ReportSnapshotBase&amp;amp; snapshot)
   at Microsoft.Reporting.LocalService.GetCompiledReport(CatalogItemContext itemContext, Boolean rebuild, ReportSnapshotBase&amp;amp; snapshot)
   at Microsoft.Reporting.LocalService.CompileReport(CatalogItemContext itemContext, Boolean rebuild)
   at Microsoft.Reporting.WinForms.LocalReport.CompileReport()</StackTrace><ExceptionString>System.ApplicationException: The report definition for report 'QuanLyBanHang.Report.rptMatHang.rdlc' has not been specified
   at Microsoft.Reporting.StandalonePreviewStore.GetCompiledReport(CatalogItemContext context, Boolean rebuild, ReportSnapshotBase&amp;amp; snapshot)
   at Microsoft.Reporting.LocalService.GetCompiledReport(CatalogItemContext itemContext, Boolean rebuild, ReportSnapshotBase&amp;amp; snapshot)
   at Microsoft.Reporting.LocalService.CompileReport(CatalogItemContext itemContext, Boolean rebuild)
   at Microsoft.Reporting.WinForms.LocalReport.CompileReport()</ExceptionString></InnerException></Exception></TraceRecord>
A first chance exception of type 'Microsoft.Reporting.WinForms.LocalProcessingException' occurred in Microsoft.ReportViewer.WinForms.dll
System.Transactions Critical: 0 : <TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Critical"><TraceIdentifier>http://msdn.microsoft.com/TraceCodes/System/ActivityTracing/2004/07/Reliability/Exception/Unhandled</TraceIdentifier><Description>Unhandled exception</Description><AppDomain>QuanLyBanHang.vshost.exe</AppDomain><Exception><ExceptionType>Microsoft.Reporting.WinForms.LocalProcessingException, Microsoft.ReportViewer.WinForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</ExceptionType><Message>An error occurred during local report processing.</Message><StackTrace>   at Microsoft.Reporting.WinForms.LocalReport.CompileReport()
   at Microsoft.Reporting.WinForms.LocalReport.SetParameters(IEnumerable`1 parameters)
   at QuanLyBanHang.Report.frmDSMatHang.frmDSMatHang_Load(Object sender, EventArgs e) in C:\Users\LordNguyen\Desktop\ quan-li-sieu-thi\Source\QuanLySieuThi\Report\frmDSMatHang.vb:line 30
   at System.Windows.Forms.Form.OnLoad(EventArgs e)
   at DevComponents.DotNetBar.Office2007RibbonForm.OnLoad(EventArgs e)
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl()
   at System.Windows.Forms.Control.WmShowWindow(Message&amp;amp; m)
   at System.Windows.Forms.Control.WndProc(Message&amp;amp; m)
   at DevComponents.DotNetBar.Office2007RibbonForm.WndProc(Message&amp;amp; m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&amp;amp; m)
   at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)</StackTrace><ExceptionString>Microsoft.Reporting.WinForms.LocalProcessingException: An error occurred during local report processing. ---&amp;gt; System.ApplicationException: The report definition for report 'QuanLyBanHang.Report.rptMatHang.rdlc' has not been specified
   at Microsoft.Reporting.StandalonePreviewStore.GetCompiledReport(CatalogItemContext context, Boolean rebuild, ReportSnapshotBase&amp;amp; snapshot)
   at Microsoft.Reporting.LocalService.GetCompiledReport(CatalogItemContext itemContext, Boolean rebuild, ReportSnapshotBase&amp;amp; snapshot)
   at Microsoft.Reporting.LocalService.CompileReport(CatalogItemContext itemContext, Boolean rebuild)
   at Microsoft.Reporting.WinForms.LocalReport.CompileReport()
   --- End of inner exception stack trace ---
   at Microsoft.Reporting.WinForms.LocalReport.CompileReport()
   at Microsoft.Reporting.WinForms.LocalReport.SetParameters(IEnumerable`1 parameters)
   at QuanLyBanHang.Report.frmDSMatHang.frmDSMatHang_Load(Object sender, EventArgs e) in C:\Users\LordNguyen\Desktop\ quan-li-sieu-thi\Source\QuanLySieuThi\Report\frmDSMatHang.vb:line 30
   at System.Windows.Forms.Form.OnLoad(EventArgs e)
   at DevComponents.DotNetBar.Office2007RibbonForm.OnLoad(EventArgs e)
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl()
   at System.Windows.Forms.Control.WmShowWindow(Message&amp;amp; m)
   at System.Windows.Forms.Control.WndProc(Message&amp;amp; m)
   at DevComponents.DotNetBar.Office2007RibbonForm.WndProc(Message&amp;amp; m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&amp;amp; m)
   at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)</ExceptionString><InnerException><ExceptionType>System.ApplicationException, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>The report definition for report 'QuanLyBanHang.Report.rptMatHang.rdlc' has not been specified</Message><StackTrace>   at Microsoft.Reporting.StandalonePreviewStore.GetCompiledReport(CatalogItemContext context, Boolean rebuild, ReportSnapshotBase&amp;amp; snapshot)
   at Microsoft.Reporting.LocalService.GetCompiledReport(CatalogItemContext itemContext, Boolean rebuild, ReportSnapshotBase&amp;amp; snapshot)
   at Microsoft.Reporting.LocalService.CompileReport(CatalogItemContext itemContext, Boolean rebuild)
   at Microsoft.Reporting.WinForms.LocalReport.CompileReport()</StackTrace><ExceptionString>System.ApplicationException: The report definition for report 'QuanLyBanHang.Report.rptMatHang.rdlc' has not been specified
   at Microsoft.Reporting.StandalonePreviewStore.GetCompiledReport(CatalogItemContext context, Boolean rebuild, ReportSnapshotBase&amp;amp; snapshot)
   at Microsoft.Reporting.LocalService.GetCompiledReport(CatalogItemContext itemContext, Boolean rebuild, ReportSnapshotBase&amp;amp; snapshot)
   at Microsoft.Reporting.LocalService.CompileReport(CatalogItemContext itemContext, Boolean rebuild)
   at Microsoft.Reporting.WinForms.LocalReport.CompileReport()</ExceptionString></InnerException></Exception></TraceRecord>
A first chance exception of type 'Microsoft.Reporting.WinForms.LocalProcessingException' occurred in Microsoft.ReportViewer.WinForms.dll
System.Transactions Critical: 0 : <TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Critical"><TraceIdentifier>http://msdn.microsoft.com/TraceCodes/System/ActivityTracing/2004/07/Reliability/Exception/Unhandled</TraceIdentifier><Description>Unhandled exception</Description><AppDomain>QuanLyBanHang.vshost.exe</AppDomain><Exception><ExceptionType>Microsoft.Reporting.WinForms.LocalProcessingException, Microsoft.ReportViewer.WinForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</ExceptionType><Message>An error occurred during local report processing.</Message><StackTrace>   at Microsoft.Reporting.WinForms.LocalReport.CompileReport()
   at Microsoft.Reporting.WinForms.LocalReport.SetParameters(IEnumerable`1 parameters)
   at QuanLyBanHang.Report.frmDSMatHang.frmDSMatHang_Load(Object sender, EventArgs e) in C:\Users\LordNguyen\Desktop\ quan-li-sieu-thi\Source\QuanLySieuThi\Report\frmDSMatHang.vb:line 30
   at System.Windows.Forms.Form.OnLoad(EventArgs e)
   at DevComponents.DotNetBar.Office2007RibbonForm.OnLoad(EventArgs e)
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl()
   at System.Windows.Forms.Control.WmShowWindow(Message&amp;amp; m)
   at System.Windows.Forms.Control.WndProc(Message&amp;amp; m)
   at DevComponents.DotNetBar.Office2007RibbonForm.WndProc(Message&amp;amp; m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&amp;amp; m)
   at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)</StackTrace><ExceptionString>Microsoft.Reporting.WinForms.LocalProcessingException: An error occurred during local report processing. ---&amp;gt; System.ApplicationException: The report definition for report 'QuanLyBanHang.Report.rptMatHang.rdlc' has not been specified
   at Microsoft.Reporting.StandalonePreviewStore.GetCompiledReport(CatalogItemContext context, Boolean rebuild, ReportSnapshotBase&amp;amp; snapshot)
   at Microsoft.Reporting.LocalService.GetCompiledReport(CatalogItemContext itemContext, Boolean rebuild, ReportSnapshotBase&amp;amp; snapshot)
   at Microsoft.Reporting.LocalService.CompileReport(CatalogItemContext itemContext, Boolean rebuild)
   at Microsoft.Reporting.WinForms.LocalReport.CompileReport()
   --- End of inner exception stack trace ---
   at Microsoft.Reporting.WinForms.LocalReport.CompileReport()
   at Microsoft.Reporting.WinForms.LocalReport.SetParameters(IEnumerable`1 parameters)
   at QuanLyBanHang.Report.frmDSMatHang.frmDSMatHang_Load(Object sender, EventArgs e) in C:\Users\LordNguyen\Desktop\ quan-li-sieu-thi\Source\QuanLySieuThi\Report\frmDSMatHang.vb:line 30
   at System.Windows.Forms.Form.OnLoad(EventArgs e)
   at DevComponents.DotNetBar.Office2007RibbonForm.OnLoad(EventArgs e)
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl()
   at System.Windows.Forms.Control.WmShowWindow(Message&amp;amp; m)
   at System.Windows.Forms.Control.WndProc(Message&amp;amp; m)
   at DevComponents.DotNetBar.Office2007RibbonForm.WndProc(Message&amp;amp; m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&amp;amp; m)
   at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)</ExceptionString><InnerException><ExceptionType>System.ApplicationException, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>The report definition for report 'QuanLyBanHang.Report.rptMatHang.rdlc' has not been specified</Message><StackTrace>   at Microsoft.Reporting.StandalonePreviewStore.GetCompiledReport(CatalogItemContext context, Boolean rebuild, ReportSnapshotBase&amp;amp; snapshot)
   at Microsoft.Reporting.LocalService.GetCompiledReport(CatalogItemContext itemContext, Boolean rebuild, ReportSnapshotBase&amp;amp; snapshot)
   at Microsoft.Reporting.LocalService.CompileReport(CatalogItemContext itemContext, Boolean rebuild)
   at Microsoft.Reporting.WinForms.LocalReport.CompileReport()</StackTrace><ExceptionString>System.ApplicationException: The report definition for report 'QuanLyBanHang.Report.rptMatHang.rdlc' has not been specified
   at Microsoft.Reporting.StandalonePreviewStore.GetCompiledReport(CatalogItemContext context, Boolean rebuild, ReportSnapshotBase&amp;amp; snapshot)
   at Microsoft.Reporting.LocalService.GetCompiledReport(CatalogItemContext itemContext, Boolean rebuild, ReportSnapshotBase&amp;amp; snapshot)
   at Microsoft.Reporting.LocalService.CompileReport(CatalogItemContext itemContext, Boolean rebuild)
   at Microsoft.Reporting.WinForms.LocalReport.CompileReport()</ExceptionString></InnerException></Exception></TraceRecord>
A first chance exception of type 'Microsoft.Reporting.WinForms.LocalProcessingException' occurred in Microsoft.ReportViewer.WinForms.dll
System.Transactions Critical: 0 : <TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Critical"><TraceIdentifier>http://msdn.microsoft.com/TraceCodes/System/ActivityTracing/2004/07/Reliability/Exception/Unhandled</TraceIdentifier><Description>Unhandled exception</Description><AppDomain>QuanLyBanHang.vshost.exe</AppDomain><Exception><ExceptionType>Microsoft.Reporting.WinForms.LocalProcessingException, Microsoft.ReportViewer.WinForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</ExceptionType><Message>An error occurred during local report processing.</Message><StackTrace>   at Microsoft.Reporting.WinForms.LocalReport.CompileReport()
   at Microsoft.Reporting.WinForms.LocalReport.SetParameters(IEnumerable`1 parameters)
   at QuanLyBanHang.Report.frmDSMatHang.frmDSMatHang_Load(Object sender, EventArgs e) in C:\Users\LordNguyen\Desktop\ quan-li-sieu-thi\Source\QuanLySieuThi\Report\frmDSMatHang.vb:line 27
   at System.Windows.Forms.Form.OnLoad(EventArgs e)
   at DevComponents.DotNetBar.Office2007RibbonForm.OnLoad(EventArgs e)
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl()
   at System.Windows.Forms.Control.WmShowWindow(Message&amp;amp; m)
   at System.Windows.Forms.Control.WndProc(Message&amp;amp; m)
   at DevComponents.DotNetBar.Office2007RibbonForm.WndProc(Message&amp;amp; m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&amp;amp; m)
   at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)</StackTrace><ExceptionString>Microsoft.Reporting.WinForms.LocalProcessingException: An error occurred during local report processing. ---&amp;gt; System.ApplicationException: The report definition for report 'QuanLyBanHang.Report.rptMatHang.rdlc' has not been specified
   at Microsoft.Reporting.StandalonePreviewStore.GetCompiledReport(CatalogItemContext context, Boolean rebuild, ReportSnapshotBase&amp;amp; snapshot)
   at Microsoft.Reporting.LocalService.GetCompiledReport(CatalogItemContext itemContext, Boolean rebuild, ReportSnapshotBase&amp;amp; snapshot)
   at Microsoft.Reporting.LocalService.CompileReport(CatalogItemContext itemContext, Boolean rebuild)
   at Microsoft.Reporting.WinForms.LocalReport.CompileReport()
   --- End of inner exception stack trace ---
   at Microsoft.Reporting.WinForms.LocalReport.CompileReport()
   at Microsoft.Reporting.WinForms.LocalReport.SetParameters(IEnumerable`1 parameters)
   at QuanLyBanHang.Report.frmDSMatHang.frmDSMatHang_Load(Object sender, EventArgs e) in C:\Users\LordNguyen\Desktop\ quan-li-sieu-thi\Source\QuanLySieuThi\Report\frmDSMatHang.vb:line 27
   at System.Windows.Forms.Form.OnLoad(EventArgs e)
   at DevComponents.DotNetBar.Office2007RibbonForm.OnLoad(EventArgs e)
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl()
   at System.Windows.Forms.Control.WmShowWindow(Message&amp;amp; m)
   at System.Windows.Forms.Control.WndProc(Message&amp;amp; m)
   at DevComponents.DotNetBar.Office2007RibbonForm.WndProc(Message&amp;amp; m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&amp;amp; m)
   at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)</ExceptionString><InnerException><ExceptionType>System.ApplicationException, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>The report definition for report 'QuanLyBanHang.Report.rptMatHang.rdlc' has not been specified</Message><StackTrace>   at Microsoft.Reporting.StandalonePreviewStore.GetCompiledReport(CatalogItemContext context, Boolean rebuild, ReportSnapshotBase&amp;amp; snapshot)
   at Microsoft.Reporting.LocalService.GetCompiledReport(CatalogItemContext itemContext, Boolean rebuild, ReportSnapshotBase&amp;amp; snapshot)
   at Microsoft.Reporting.LocalService.CompileReport(CatalogItemContext itemContext, Boolean rebuild)
   at Microsoft.Reporting.WinForms.LocalReport.CompileReport()</StackTrace><ExceptionString>System.ApplicationException: The report definition for report 'QuanLyBanHang.Report.rptMatHang.rdlc' has not been specified
   at Microsoft.Reporting.StandalonePreviewStore.GetCompiledReport(CatalogItemContext context, Boolean rebuild, ReportSnapshotBase&amp;amp; snapshot)
   at Microsoft.Reporting.LocalService.GetCompiledReport(CatalogItemContext itemContext, Boolean rebuild, ReportSnapshotBase&amp;amp; snapshot)
   at Microsoft.Reporting.LocalService.CompileReport(CatalogItemContext itemContext, Boolean rebuild)
   at Microsoft.Reporting.WinForms.LocalReport.CompileReport()</ExceptionString></InnerException></Exception></TraceRecord>
Khi Build thì không có lỗi, khi chạy mới phát sinh lỗi!
Mình có đọc bài hướng dẫn làm report bằng VB & C# nhưng vẫn không sửa được! Mong mọi người quan tâm thảo luận!