New to ASP.net reporting not working I get an error
<p>I'm new to ASP.net reporting and I'm trying to model a new report based on a curent one that was built by someone else. And it's not working. I get an error: "A data source instance has not been supplied for the data source 'dsPrinterList'".</p>

<p>The error happens in dymanic file ScriptResource.axd?p=[QUID]: (Line: "if (e) throw e;" I've encased the line with <strong>*</strong>)</p>

<pre><code>$type.registerClass('Sys.WebForms.InitializeRequestEventArgs', Sys.CancelEventArgs);
$type = Sys.WebForms.PageLoadedEventArgs = function PageLoadedEventArgs(panelsUpdated, panelsCreated, dataItems) {
/// &lt;summary locid="M:J#Sys.WebForms.PageLoadedEventArgs.#ctor"&gt;The arguments for the PageRequestManager's pageLoaded event. The pageLoaded event is raised after the DOM has been updated.&lt;/summary&gt;
/// &lt;param name="panelsUpdated" type="Array"&gt;An array of UpdatePanels that were updated.&lt;/param&gt;
/// &lt;param name="panelsCreated" type="Array"&gt;An array of UpdatePanels that were created.&lt;/param&gt;
/// &lt;param name="dataItems" type="Object" mayBeNull="true"&gt;&lt;/param&gt;
var e = Function._validateParams(arguments, [
    {name: "panelsUpdated", type: Array},
    {name: "panelsCreated", type: Array},
    {name: "dataItems", type: Object, mayBeNull: true}
]);
****** if (e) throw e; *******
Sys.WebForms.PageLoadedEventArgs.initializeBase(this);

this._panelsUpdated = panelsUpdated;
this._panelsCreated = panelsCreated;
this._dataItems = dataItems || new Object();
}
</code></pre>

<p>The aspx markup looks like this: </p>

<pre><code>&lt;%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Reports.aspx.cs" Inherits="Reports" Title="Reports"  %&gt;

&lt;%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %&gt;
&lt;asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"&gt;
  &lt;h2&gt;Reports&lt;/h2&gt;
    &lt;div id="AssetMngnt-Report"&gt;
      &lt;asp:Label ID="lblError" runat="server" ForeColor="Red" /&gt;
        &lt;rsweb:ReportViewer ID="reportViewer1" runat="server" Font-Names="Verdana" PageCountMode="Actual"  
        Font-Size="8pt" Width="90%" Height="500px" CssClass="AssetMngnt-defaultReports" ZoomPercent="100" /&gt;

    &lt;/div&gt;
 &lt;/asp:Content&gt;
</code></pre>

<p>The correspondig code file has the following code, it is about 500 some lines long so I'm only pasting the part that I've added to make this report work:</p>

<pre><code>protected void Page_Load(object sender, EventArgs e)
{
    if (!Page.IsPostBack)
    {
        if (Request.QueryString["TonersReport"] != null) { Toners_Report(); }
    }
}

protected void Toners_Report()
{
    ObjectDataSource ods = new ObjectDataSource();
    ods.ID = "ods";
    ods.TypeName = "";
    ods.SelectMethod = "";
    ods.TypeName = "dsPrinters";
    ods.SelectParameters.Clear();

    ReportDataSource rds1 = new ReportDataSource("dsPrinters", ods);

    reportViewer1.LocalReport.DataSources.Clear();
    reportViewer1.LocalReport.DataSources.Add(rds1);

    string _report = Request.QueryString["TonersReport"];

    switch (_report)
    {
        case "PrinterList":

            ods.SelectMethod = "GetPrintersFor_dlPrinters";
            ods.TypeName = "PrintersBLL";

            reportViewer1.LocalReport.ReportPath = Server.MapPath("~/Reports/Priters_List_All_Locations.rdlc");
            break;

        case "":

        default:
            break;
    }
}
</code></pre>

<p>I've created the rdlc file using the wizard, where I've added the existing dataset I'm already to display printers in a grid, so I know the dataset works. I've added my data fields to the "Columns" section in the wizard and in the "Values" where I placed them in a Var(Printer_Model) method. Everyting compiles just fine. Only when I run the app and click on the link that supposed to prodice the report, I get the error (already in the report page, that is).</p>

<p>I really need to get this done and would like your experties. Let me know if you need other bits of code or other information.</p>

<p>Thanks,
Risho</p>
