I am trying to display Microsoft Reporting Service Reports from windows application.
I have application window with Report viewer control.
I have assigned valid path and URI from Server report properties in report viewer control. When I try to display the reports
Error is "
"The attempt to connect to the report server failed. Check your connection information and that the report server is compaitble version. The request failed with HTTP status 404: Not Found.
Please help me..Do I need to set any credential for my reportviewer control? then how?
this.reportViewer1.ServerReport.DisplayName = "SampleReport";
this.reportViewer1.ServerReport.ReportPath = "/SampleReportFolder/SampleReport";
this.reportViewer1.ServerReport.ReportServerUrl = new System.Uri("http://laptop/reportserver", System.UriKind.Absolute);
thanks in advance.
KamalKamal,
What version of Report Server are you connecting to? The ReportViewer control is not compatible with SQL Server 2000 Reporting Services. You need the April CTP of Report Server. Your code looks OK otherwise.
Rajeev|||
I do have the same problem. My installation is:
- VS.NET 2003
- Sql Server 2000 Dev
- Reporting Services for Sql Server 2000 + SP1
- VS.NET 2005 Beta 2
- Sql Server 2005 CTP April 2005
I would like to use VS.NET 2005 Beta 2 under "Go live license" but need the Sql Server 2000 Reporting Services as my customer will not upgrade a existing Sql Server 2000 installation.
Is it possible to use this combination?
Thanks,
Dirk
Please make sure your setting in your webconfig
[Thanks to Akilal_MSFT]
- fix the ReportService.asmx error with replacing the <assemblies> section in the <system.web> section of the C:\Program Files\Microsoft SQL Server\MSSQL.3\Reporting Services\ReportServer\web.config file:
<assemblies>
<clear />
<add assembly="ReportingServicesWebServer" />
<add assembly="mscorlib" />
<add assembly="System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add assembly="System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="System.Web.Services, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add assembly="System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add assembly="System.EnterpriseServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add assembly="System.Web.Mobile, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</assemblies>
Change the following line in both web.config files:
<trust level="Full" originUrl="" />
Location: C:\Program Files\Microsoft SQL Server\MSSQL.3\Reporting Services\ReportServer
and: C:\Program Files\Microsoft SQL Server\MSSQL.3\Reporting Services\ReportManager |||
Hai,
I create a window application and i wish to use the report viewer to view the reports that published to the server. Here is my code in VB.NEt
ReportViewer1.ServerReport.DisplayName = "SampleReport"
ReportViewer1.ServerReport.ReportPath = "/SampleReport/Report1"
ReportViewer1.ServerReport.ReportServerUrl = New System.Uri("http://localhost/reportserver")
Is there any problem to my code? why the report viewer didnt show anything and no error occured when i run the application?
the real path to show the report using report manager is as below:
http://localhost/ReportServer/Pages/ReportViewer.aspx?/SampleReport/Report1&rs:Command=Render
Am i need to change the reportpath same as above?
Another question is : Can i print the reports using my application? means i press a button print in my application and then the report can be print without using the report viewer.
Kindly wait for your reply.
Please email to me too if possible : elainelikim@.gmail.com
Thanks|||
Your issue is because it is SQL 2k RS you are hitting.
I have the same issue and have not found the resolution yet.
Except I have read things suggesting the VS05 ReportViewer does not work with SQL 2000 RS. I suppose it seems right to me; I have resorted to a Web Browser control in WinForms as a temp fix to the issue.
No comments:
Post a Comment