Link to home
Start Free TrialLog in
Avatar of salman_sulaiman_2008
salman_sulaiman_2008

asked on

How To Access The Reports From "Reports Project - ReportServer" via "ReportViewer" Control??

Greetings Experts!
I have this problem which I can't seem to sort it out! here it is:
I have two projects in my solution inside Visual Studio 2005, one is my main project, and another underneath it is a Report Project, under the Report project I have two reports, report1.rdl, and report2.rdl, when debug the whole solution keeping the Report project as my startup project, everything works, the reports appear exactly how I need them to be. My problem is, how can I access those reports from my main project, I have added a web page "Report_Default.aspx", and added into it a "ReportViewer" control, when I try to configure the "ReportViewer" control, I am asked to sepecify  the "Report Server URL" and "Report Path", I know that the "ReportServer" URL would be : http://localhost/ReportServer
but I can't figure out what the "Report Path" should be. I tried different Paths, but no good. I hope someone could help me or direct me into the right direction.
thanks in advance.
~salman~
ASKER CERTIFIED SOLUTION
Avatar of brejk
brejk
Flag of Poland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Right click the Report Project Folder and there you see the Report Server URL and the Report Path specified for your Project.
Avatar of salman_sulaiman_2008
salman_sulaiman_2008

ASKER

Greetings Brejk!
thanks for the reply  mate!
I followed your instructions, and I think we are getting somewhere, now when I try to run the web application and accessing the "Report_Default.aspx" page, I get the following message on the screen:

The permissions granted to user 'NT AUTHORITY\IUSR' are insufficient for performing this operation. (rsAccessDenied)

I am not sure how to deal with this error...
what do you  think Brejk?
~salman~
Well, seems that you have to see some security settings in IIS for your virtual directory. Or you can just add NTAUTHORITY\IUSR to your report viewers (users that are allowed to view the reports) using Report Manager.