I have a MVC4 application in Visual Studio 2010 which contains plenty of classes. I\'m trying to use them to pass in as the DataSource for a Report Definition Language Client (
Here are a couple solutions, but I prefer the second one.
As this appears to be a bug with the MVC Web Application project type itself, you can add the report to a different project type (like Class Library). As described in the post Visual Studio 2010 Report Viewer - Object Datasource, just create a separate library for the project and add the rdlc file there. The data source configuration wizard should now look like this:
As figured out in Can't see or add Website Data Sources in RDLC report in ASP.NET MVC, you can just add an aspx page anywhere to the MVC project to trick Visual Studio into pulling in the right design time libraries.
Just do the following:
Open up the RDLC file and choose a DataSource from the dropdown: