ReportViewer Control VS2008

Discussion in 'ASP.NET / ASP.NET Core' started by jhabusiness, May 3, 2011.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. I am using VS 2008 and ReportViewer control 9.0.0.0 and SQL Server 2008 Report Server hosted at discountasp.net. I have deployed reports to discountasp.net report server but when I try to access the report via our application/reportviewer control I get a message stating ""The attempt to connect to the report server failed. Check your connection information and that the report server is a compatible version". Code is below--
    Dim param As New Microsoft.Reporting.WebForms.ReportParameter(paramname, ParamValue)
    Dim mycred As IReportServerCredentials = New CustomReportCredentials("user", "password", "rs2k801.discountasp.net")
    ReportViewer1.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Remote
    ReportViewer1.ServerReport.ReportServerUrl = New Uri("https://rs2k801.discountasp.net")
    ReportViewer1.ServerReport.ReportPath = "/*******/reports/" & ReportName
    ReportViewer1.ServerReport.ReportServerCredentials = mycred
    ReportViewer1.ServerReport.SetParameters(New ReportParameter() {param})
    ReportViewer1.Width = 800
    ReportViewer1.Height = 600
    ReportViewer1.ServerReport.Refresh()
     
  2. dmitri

    dmitri DiscountASP.NET Staff

    Have you defined Report Server credentials (User, Password, and Domain) in your web.config file?
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page