December 7, 2008 at 11:37 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 11:39 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 8, 2008 at 8:02 am
Duplicate post. Please post answers here
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply