I am re-writing a report that worked fine in vs 2008, but doesn't work in vs 2010. Here is my code.
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim dt As _8ManBracket.Tourn_Host_BracketsDataTable
Dim da As New _8ManBracketTableAdapters.Tourn_Host_BracketsTableAdapter
dt = da.GetData(TournGuid, txtDiv.Text, txtWeight.Text)
ReportViewer1.LocalReport.DataSources.Add(New ReportDataSource("ID_8ManBracket_Tourn_Host_Brackets", dt))
I get the following message:
Overload resolution failed because no accessible 'New' is most specific for these arguments:
'Public Sub New(name As String, dataSourceValue As System.Collections.IEnumerable)': Not most specific.
'Public Sub New(name As String, dataSourceValue As System.Data.DataTable)': Not most specific.
I have spent the better part of two days on this problem and can't seem to figure out the problem. any ideas?
View Complete Post