Error with ReportViewer in ASP.NET: "The server is not a compatible version" ?
- by fritz
I deployed some SSRS reports created in Visual Studio 2008 to localhost:8080/ReportServer.
( Using VS 2008 .NET , Version 9.0.21022.8, SQL Server 2008 and XP Prof.)
Calling them in the Webbrowser works fine, but now I'm trying to use them in an ASP.NET app with ReportViewer in VS 2008 and using local ASP.NET Development Server.
Excecuting the following Code:
ReportViewer1.ProcessingMode = ProcessingMode.Remote;
IReportServerCredentials irsc = new CustomReportCredentials("xxx", "xxx", "xxx");
ReportViewer1.ServerReport.ReportServerCredentials = irsc;
ReportViewer1.ServerReport.ReportServerUrl = new Uri("http://localhost:8080/ReportServer/ReportService2005.asmx?wsdl");
ReportViewer1.ServerReport.ReportPath = @"/AdventureWorks Sample Reports/Sales Order Detail";
ReportViewer1.ServerReport.Refresh();
results in the following exception:
"# The version of the report server web service definition (WSDL) is either not valid or unrecognized. The server is not a compatible version.
* System.Web.Services.Protocols.SoapException: Server did not recognize the value of HTTP Header 'SOAPAction':
http://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/LoadReport..."
The report file .rdl contains the namespace:
xmlns="http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition"
and "http://localhost:8080/ReportServer?&rs%3aCommand=ListChildren" in the Webbrowser shows the report directories and
"Microsoft SQL Server Reporting Services, Version 10.0.1600.22"
The file "ReportService2005.wsdl" contains a lot of "soapAction="http://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/..." attributes.
So it sounds like a 2005 / 2008 incompability ? (but as mentioned: i'm using only 2008 products)
Any ideas ?