Hello,
When i am trying to pass my network credentials in the "reportOption.ReportModel.ReportServerCredential = new System.Net.NetworkCredentia("username","pwd")" it is throwing exception of 401 i.e. unauthorized user. I have compared it with the InvoiceTemplate Report as well. I was able to open the Invoice Template report but not able to open my report.
I am able to open my Report in the sql reporting server.
I am also able to open the report using the Microsoft report viewer. However, in this tool as there is addition property of setting the "ReportServiceUrl" i am facing issues with the network credential stuff.
I have attached the error as well for your reference.
Ankit Shah
Attachment:
Error_9093f98d.zip