I have a working Silverlight web app using telerik reports. I moved it to a new server and now I get the error below. The production web site runs on the same box as the sql server that is providing the data. At first I thought it was the connection string because there was an error in it, but I corrected that and can run the report from the dev machine using that connection string. I have ensured that the deployed application is in sync with the dev box – all files are identical.
I put logging code in the data class for the objectdatasource that the report engine uses to retrieve data from the database and that code is never run, so it looks like the error is happening on the server somewhere after the ReportService.svc and before the telerik reports use the objectdatasource to retrieve records.
An identical deploy (with a different connection string) to a different server last week works just fine. I would think there is a file missing or an old version somewhere causing the problem but the only critical files outside of telerik are the Silverlight xap file which sets the .Report property of the ReportViewer and the DLL with the report designers and data class, and both of these files are correct and up to date, and both work from the dev box using the same connection string that points to a remote sql server. I can preview the report from the dev box and run the application and view the reports.
So can you tell me what this error means? What is NotFound? The db server? The designer class?
To me it looks like a connection string error message – it could not find the db server, but that is very unlikely. Is there a way to trace this out on the server?
Error: System.Reflection.TargetInvocationException : An
exception occurred during the operation, making the result invalid. Check InnerException for exception details.
at
System.ComponentModel.AsyncCompletedEventArgs.RaiseExceptionIfNecessary()
at
Telerik.Reporting.Service.SilverlightClient.RenderAndCacheEventArgs.get_RenderingResult()
at
Telerik.ReportViewer.Silverlight.ReportViewerModel.OnRenderAndCacheCompleted(Object
sender, RenderAndCacheEventArgs e)
------------- InnerException: -------------
System.ServiceModel.CommunicationException : The remote
server returned an error: NotFound.
at
System.ServiceModel.Channels.Remoting.RealProxy.Invoke(Object[] args)
at
proxy_2.EndRenderAndCache(IAsyncResult )
at
Telerik.Reporting.Service.SilverlightClient.ReportServiceClient.OnEndRenderAndCache(IAsyncResult
result)
at
System.ServiceModel.ClientBase`1.OnAsyncCallCompleted(IAsyncResult result)
------------- InnerException: -------------
System.Net.WebException : The remote server returned an
error: NotFound.
at
System.Net.Browser.AsyncHelper.BeginOnUI(SendOrPostCallback beginMethod, Object
state)
at
System.Net.Browser.BrowserHttpWebRequest.EndGetResponse(IAsyncResult
asyncResult)
at
System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelAsyncRequest.CompleteGetResponse(IAsyncResult
result)
------------- InnerException: -------------
System.Net.WebException : The remote server returned an
error: NotFound.
at
System.Net.Browser.BrowserHttpWebRequest.InternalEndGetResponse(IAsyncResult
asyncResult)
at
System.Net.Browser.BrowserHttpWebRequest.<>c__DisplayClassa.<EndGetResponse>b__9(Object
sendState)
at
System.Net.Browser.AsyncHelper.<>c__DisplayClass4.<BeginOnUI>b__0(Object
sendState)