asp.net - ReportViewer won't bind -


i've got reportviewer control in ascx so:

<rsweb:reportviewer     height="100%"     width="100%"     id="reportviewer1"     runat="server"     asyncrendering="false"     font-names="verdana"     font-size="8pt"     waitmessagefont-names="verdana"     waitmessagefont-size="14pt"     ondatabinding="reportviewer1_databinding"     ondisposed="reportviewer1_disposed"     oninit="reportviewer1_init"     onload="reportviewer1_load"     onreporterror="reportviewer1_reporterror"> </rsweb:reportviewer> 

and in page load of containing ascx:

reportviewer1.localreport.datasources.clear(); int draftid = convert.toint32(session["draftid"]); mytableadapter adapter = new mytableadapter(); var table= adapter.getdata(draftid); reportviewer1.localreport.reportpath = server.mappath("~/reports/myreport.rdlc"); var reportdatasource = new microsoft.reporting.webforms.reportdatasource("mydatasource", (system.data.datatable)table); reportviewer1.localreport.datasources.add(reportdatasource); reportviewer1.localreport.refresh(); 

i'm reasonably have web config set properly. in compilation tag:

    <buildproviders>         <add extension=".rdlc" type="microsoft.reporting.rdlbuildprovider, microsoft.reportviewer.webforms, version=11.0.0.0, culture=neutral, publickeytoken=89845dcd8080cc91" />     </buildproviders> 

and in handlers tag (just handler, brevity):

    <add name="reportviewerwebcontrolhandler" precondition="integratedmode" verb="*" path="reserved.reportviewerwebcontrol.axd" type="microsoft.reporting.webforms.httphandler, microsoft.reportviewer.webforms, version=11.0.0.0, culture=neutral, publickeytoken=89845dcd8080cc91" /> 

the table generated adapter gets filled, , @ first blush, looks correct. set breakpoints on events listed, , initialized, load, never bind, leading me believe i've missed obvious.

any ideas?

after experimentation, ended starting on scratch. think happened had used report builder 3 build report, , tried convert rdl rdlc. i've looked @ differences, , they're small evidently significant. able salvage virtually of work copy/pasting original rdl new rdlc correct data sources defined. comments , help.


Comments