web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

n exception of type 'System.Net.WebException' occurred in Microsoft.ReportViewer.Common.dll but was not handled in user code Additional information: The request failed with HTTP status 401: Unauthorized.

(0) ShareShare
ReportReport
Posted on by

Hi all am getting below error in code of reportviewer

An exception of type 'System.Net.WebException' occurred in Microsoft.ReportViewer.Common.dll but was not handled in user code
Additional information: The request failed with HTTP status 401: Unauthorized.

  ReportViewer1.Visible = true;
        ReportViewer1.ShowCredentialPrompts = false;
        ReportViewer1.ShowParameterPrompts = false;
        ReportViewer1.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Remote;
        ReportViewer1.ServerReport.ReportServerUrl = new System.Uri(REPORTSERVERNAME);
        ReportViewer1.ServerReport.ReportPath = "/abc/Account Summary Report";
        //ReportViewer1.ServerReport.ReportServerCredentials = new ReportServerCredentials(USERNAME, PASSWORD);
        ReportViewer1.ServerReport.SetParameters(parm);

error occurs on this line 

 ReportViewer1.ServerReport.SetParameters(parm);

Kindly help

 

*This post is locked for comments

I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Community Member Profile Picture

Community Member 2

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

#1
UllrSki Profile Picture

UllrSki 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans