Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7775383
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T17:37:02+00:00 2026-06-01T17:37:02+00:00

I have some RDL reports created with SQL Server BI Development Studio and now

  • 0

I have some RDL reports created with SQL Server BI Development Studio and now I need to render them using the ASP.NET Report Viewer. Even though my RDLs contain references to the SQL server and the SELECT query, it keeps saying I need to specify a datasource for the report. Is there a way to make the datasource from the RDL be used or do I have to pass a datasource to the report viewer via C# code?

Thank you.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T17:37:03+00:00Added an answer on June 1, 2026 at 5:37 pm

    Did you verify the DataSourceReference element in your RDL? It needs the path to the reporting server.

    The DataSourceReference element can contain a full folder path (for
    example, /SampleReports/AdventureWorks) or a relative path (for
    example, AdventureWorks). Relative paths start in the same folder as
    the report. The shared data source must be on the same server as the
    report.

    Verify the DataSourceID too. Take a look at the answer on this question. It looks like it might be the same problem you are having.

    If you are using an RDLC you could also set the datasource of your report manually using ReportDataSource. “GetMyData” in the example below would implement IEnumerable or IDataSource.

    ReportDataSource reportDataSource = new ReportDataSource("MyDataName", GetMyData(startAt, endAt));
    ReportViewer1.LocalReport.DataSources.Add(reportDataSource);
    ReportViewer1.LocalReport.ReportPath = Server.MapPath("~/Reporting/MyReport.rdlc");
    
    ReportParameterCollection col = new ReportParameterCollection();
    ReportParameter startAtParam = new ReportParameter("StartAt", startAt.ToString("MMM, dd yyyy"));
    col.Add(startAtParam);
    ReportParameter endAtParam = new ReportParameter("EndAt", endAt.ToString("MMM, dd yyyy"));
    col.Add(endAtParam);
    
    ReportViewer1.LocalReport.SetParameters(col);   
    

    If you are converting an RDL to an RDLC you can follow the steps here. Note that you need to re-create data source and query information. Also, the XML schema definition is different between 2005 and 2008.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some server-based reports (*.rdl) which returns data from a SQL Server 2008
I have created a rdl report with some dynamic query in stored procedure. Report
I have some images (png's and jpg's mostly) that I'm storing in SQL Server
Using BIDS 2005 to create rdl reports. I want to have the report aggregate
I have some ASP.NET web services which all share a common helper class they
I have some C# / asp.net code I inherited which has a textbox which
I have a large SSRS 2008 Server Report Project (more than 200 reports). Currently
Have some code: using (var ctx = new testDataContext()) { var options = new
We have some html that looks like this: <form id=MyUserControl runat=server method=post> <script language=javascript
i have a problem with rendering image on RDL file in reporting services (SQL

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.