I have successfully made the report as a classlibrary in the website structure. Now I am trying to get the viewer to display it in an aspx page. I have add the classlibrary in the references, and was able to set the reportviewer properties to point to the report in the class. However when I execute the asp page I am getting an error.
"An error has occurred while processing Report": Unable to connect to database. Please verify that your connection string is valid; in case you use a connection string from the application configuration file, make sure the name is correct and the connection string settings are present in the configuration file of your application."
I can open the Report in the classlibrary and preview the data so I know the connection is good. Do I have to declare the connection in the Web.Config file? Currently I set the SQLconnection1 for the report.
Thanks
"An error has occurred while processing Report": Unable to connect to database. Please verify that your connection string is valid; in case you use a connection string from the application configuration file, make sure the name is correct and the connection string settings are present in the configuration file of your application."
I can open the Report in the classlibrary and preview the data so I know the connection is good. Do I have to declare the connection in the Web.Config file? Currently I set the SQLconnection1 for the report.
Thanks