Using anonymous authentication is not recommended because of security reasons.
The best way to expose your report is to use ReportViewer and setup the credentials on it using ReportViewerCredentials.
Dim userName As String = ConfigurationManager.AppSettings("ReportViewer_UserName")Dim password As String = ConfigurationManager.AppSettings("ReportViewer_Password")Dim domain As String = ConfigurationManager.AppSettings("ReportViewer_UserDomain")reportViewer.ServerReport.ReportServerCredentials = New ReportViewerCredential(userName, password, domain)Dim paramList As List(Of ReportParameter) = New List(Of ReportParameter)paramList.Add(New ReportParameter("ClientContactID", mintClientContactID, False))reportViewer.ServerReport.SetParameters(paramList)
Warning: This is only supported for .NET Full Framework because of the ReportViewer component.