December 7, 2008 at 11:42 am
Hey thanks for the changes ...
The is going to work fine I think so ... but I have one error ...
I am writing this code in Visual Studio and the OS is MS Server 2003 enterprise edition.
I am using the port 90 so I changed the URL a little bit... but it is ok..
Problem starts here :
Please see the code below and the error occurs in the line which is here BOLD.
protected void Button1_Click(object sender, EventArgs e)
{
ReportViewer ReportViewer1 = new ReportViewer();
string sReportServerURL = "http://localhost:90/ReportServer";
string sReportPath = "/Report Project1/Report1";
Microsoft.Reporting.WebForms.ReportParameter[] Param =
{new Microsoft.Reporting.WebForms.ReportParameter("Lname",this.TextBox1.Text)};
ReportViewer1.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Remote;
ReportViewer1.ServerReport.ReportServerUrl = new Uri(sReportServerURL);
ReportViewer1.ServerReport.ReportPath = sReportPath;
ReportViewer1.ServerReport.SetParameters(Param);
ReportViewer1.ShowParameterPrompts = false;
ReportViewer1.ShowPromptAreaButton = false;
ReportViewer1.ServerReport.Refresh();
ReportViewer1.Visible = true;
}
The error message:
ReportServer Exception was unhandled by the user code.
" The permissions granted to user 'NT AUTHORITY\NETWORK SERVICE' are insufficient for performing this operation. (rsAccessDenied) "
Please let me know the changes ... I might be having problems with IIS ... Active Direc Group/User ... [Wink]
or whatever ..... a
ANY HELP APPRECIATED ...
THANKS.
-- DEVAM
December 7, 2008 at 8:27 pm
It looks like your code is running at the network service (which would be the case if you are a web application that doesn't impersonate) Try setting the ReportViewer1.ServerReport.ReportServerCredentials to a user that has permissions to access the info on the report server.
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply