Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > ReportViewer "A data source instance has not been supplied for the data " problem

Thread Tools

ReportViewer "A data source instance has not been supplied for the data " problem

Burak Gunay
Posts: n/a

I have the following files in my project in Trap namespace

CourseCost.vb -> basic course cost class
DataSource.vb -> object data source class

I have a report on my default.aspx page as follows:

<rsweb:ReportViewer ID="ReportViewer1" runat="server"
Font-Names="Verdana" Font-Size="8pt"
Height="400px" Width="400px">
<LocalReport ReportPath="Report2.rdlc"
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server"

Here is the definition of propcoursecost

Public ReadOnly Property propcoursecost() As CourseCost
'get new course cost information based on the change in
student number
Dim courseCost As New CourseCost

' assign new course cost information to course cost
With courseCost
.crsid = "CRS123"
.Students = 15
.StdntCostInd = 142
.StdntCostOpt = 156
.Instructors = 2
.InstructorCost = 70
.AnnualCost = 90
.TravelCost = 457
.TotalCost = 2345
End With

' return course cost information
Return courseCost
End Get
End Property

I set the datasource my page_load

Protected Sub Page_Load(ByVal sender As Object, ByVal e As

ReportDataSource("MyDS", ObjectDataSource1.ID))

End Sub

When I run the report I get a

"A data source instance has not been supplied for the data source
'Report_Test_Trap_DataSource2'. "

I think I set this value from the smarttag of the reportviewer already
but I am not sure if it's taking it.

How can I fix this problem?



Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Forms authentication failed - ticket supplied has expired Les Caudle ASP .Net 7 07-31-2007 03:34 AM
Forms authentication failed for the request. Reason: The ticket supplied has expired. Gibble ASP .Net 6 05-15-2007 02:23 PM
The printing has been stopped and this job has been add to the queu? dejola Computer Support 6 12-30-2005 03:26 AM
I need help I has been over 6 months since I've been able to do the system check for updates Marc Computer Support 8 07-25-2005 07:04 PM
pysqlite2.dbapi2.ProgrammingError: Incorrect number of bindings supplied. The current statement uses 0, and there are -1 supplied. F. GEIGER Python 3 05-18-2005 03:46 PM