Olá Pessoal,
Tenho relatórios no reporting services e estou tentando exibi-lo num reportviewer mas não estou conseguindo passar o login e a senha.
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
ReportViewer1.ShowCredentialPrompts = True
ReportViewer1.ServerReport.ReportServerC
redentials = New System.Net.NetworkCredential("login", "senha")
End Sub
Ao executar recebo o seguinte erro:
Unable to cast object of type 'System.Net.NetworkCredential' to type 'Microsoft.Reporting.WebForms.IReportServerCredentials'.
Alguem aponta alguma solução?
Obrigado