A data source instance has not been supplied for the data source 'DataSet1'

asp.net, c#

Solution

Seems you didn't set Data Source to Report Viewer Data Sources yet.

You can check this by many ways, I will suggest you two ways followings:

In aspx file, at `ReportViewer` tag, make sure that you have `<DataSources>` setting in the `<LocalReport>` tag. See my sample code:

<rsweb:ReportViewer ID="ReportViewer1" runat="server" Font-Names="Verdana" Font-Size="8pt" WaitMessageFont-Names="Verdana" WaitMessageFont-Size="14pt">
    <LocalReport ReportPath="Report.rdlc">
         <DataSources>
             <rsweb:ReportDataSource DataSourceId="SqlDataSource1" Name="DataSet1" />
         </DataSources>
    </LocalReport>
</rsweb:ReportViewer>

To set DataSourceId properties of `<ReportDataSource>` tag is mandatory.

Otherwise you could set report data source instance to ReportViewer in design view. See the picture below:

ReportViewer Tasks > Choose Data Source > Data Source Instance

Problem

i am creating my rdlc report through creating dataset but when i run my report this error occur "A data source instance has not been supplied for the data source 'DataSet1'" i also changed the dataset name but no improvement .i give datasource through to report viewer through smart tag.

Original source