c# - asp.net report viewer error basics : operation not allowed -


i'm trying handle on basics of report viewer control in asp.net webforms project c#. i'm using adventure work reports feel basics.

i have report called salesordernumber under report parts on sql server

i want able view @ point

if (!page.ispostback)             {                 // set processing mode reportviewer remote                 reportviewer1.processingmode = processingmode.remote;                  serverreport serverreport = reportviewer1.serverreport;                  // set report server url , report path                 serverreport.reportserverurl =                     new uri("(!removed!");                 serverreport.reportpath =                     "/report parts/salesordernumber";                  // create sales order number report parameter                 reportparameter salesordernumber = new reportparameter();                 salesordernumber.name = "salesordernumber";                  salesordernumber.values.add("so50750");                      // set report parameters report                 reportviewer1.serverreport.setparameters(             new reportparameter[] { salesordernumber }); 

i operation attempting on item '/report parts/salesordernumber' not allowed item type. (rswrongitemtype)

assign full path

"http://reportservername/reportfoldername/reportname.rdlc"

make sure report servername, serverpath , reportmode ,rendermode also


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -