This is a migrated thread and some comments may be shown as answers.

Reporting WCF Services

9 Answers 279 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
KLEBER
Top achievements
Rank 1
KLEBER asked on 12 Apr 2012, 03:18 AM
Hi.

I have a problem.
I´m trying open a report from my application, but a get this error

Error: System.Reflection.TargetInvocationException : An exception occurred during the operation, making the result invalid.  Check InnerException for exception details.
   em System.ComponentModel.AsyncCompletedEventArgs.RaiseExceptionIfNecessary()
   em Telerik.Reporting.Service.SilverlightClient.ListRenderingExtensionsEventArgs.get_Extensions()
   em Telerik.ReportViewer.Silverlight.ReportViewerModel.OnListRenderingExtensionsCompleted(Object sender, ListRenderingExtensionsEventArgs e)
 
 
------------- InnerException: -------------
 
 
System.ServiceModel.CommunicationException : The remote server returned an error: NotFound.
   em System.ServiceModel.Channels.Remoting.RealProxy.Invoke(Object[] args)
   em proxy_3.EndListRenderingExtensions(IAsyncResult )
   em Telerik.Reporting.Service.SilverlightClient.ReportServiceClient.OnEndListRenderingExtensions(IAsyncResult result)
   em System.ServiceModel.ClientBase`1.OnAsyncCallCompleted(IAsyncResult result)
 
 
------------- InnerException: -------------
 
 
System.Net.WebException : The remote server returned an error: NotFound.
   em System.Net.Browser.AsyncHelper.BeginOnUI(SendOrPostCallback beginMethod, Object state)
   em System.Net.Browser.BrowserHttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
   em System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelAsyncRequest.CompleteGetResponse(IAsyncResult result)
 
 
------------- InnerException: -------------
 
 
System.Net.WebException : The remote server returned an error: NotFound.
   em System.Net.Browser.BrowserHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult)
   em System.Net.Browser.BrowserHttpWebRequest.<>c__DisplayClassa.<EndGetResponse>b__9(Object sendState)
   em System.Net.Browser.AsyncHelper.<>c__DisplayClass4.<BeginOnUI>b__1(Object sendState)

on localhost it´s ok.

If i call the service directly on http://www.sgdweb.net/sgdweb/ReportService.svc it´s ok and the fiddler show the text in blue on service.jpg image.
But when i call from application the same address show error on fiddler.

Help me please.

Best regards




9 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 12 Apr 2012, 02:34 PM
Hi KLEBER,

As discussed in many threads, the exception thrown in the Silverlight viewer is a generic one and it might be due to various reasons.

In order to get more information about the actual problem try the following:

  • show the Output window in Visual Studio and check whether there is an exception when you're running your application in debug mode.
  • access the .svc file directly in your browser to see if it reports any problems.
  • enable the CLR exceptions from Debug --> Exceptions menu in Visual Studio and run your project in debug.
Additionally, you already have a sample at your disposal - the Visual Studio examples we install along with the product. You can use the Silverlight application and try hosting it on your local IIS and on your server and compare the differences.

Kind regards,
Steve
the Telerik team
NEW in Q1'12: Telerik Report Designer (Beta) for ad-hoc report creation. Download as part of Telerik Reporting Q1 2012. For questions and feedback, use the new Telerik Report Designer Forum.
0
KLEBER
Top achievements
Rank 1
answered on 17 Apr 2012, 04:38 AM
I do all test´s but the error continues.

I deploy in localmachine and its all OK
When i try on server get error

See fiddler result on images.

Please
I do not know what to do!!
0
Steve
Telerik team
answered on 19 Apr 2012, 12:04 PM
Hi KLEBER,

The screenshot from your first post showed response 404 which means the server has not found anything matching the requested URI. On the new screenshots from your second post however, you get 504 and 500 error codes. As your project works on the local IIS, the issue is most likely related to your server IIS configuration or Virtual Directory settings. Ensure that IIS, ASP.NET and WCF are correctly installed and registered - this is noted in this MSDN article: Deploying an Internet Information Services-Hosted WCF Service. Response status codes beginning with the digit "5" indicate cases in which the server has encountered an error or is incapable of performing the request. The server should also include an explanation of the error situation, and whether it is a temporary or permanent condition, however as server errors are not bubbled to the Silverlight client, you should check the raw response in Fiddler which would contain the actual exception. You can review the server event logs for exceptions too.

Another thing to make sure, the configuration for the Telerik Reporting WCF Service (see Hosting WCF Service in IIS) is in the web.config file, so are you deploying the same config file that you use to test your application on your local machine?

If you're running your app on shared hosting environment, such plans usually have memory restrictions upon which they reset your application pool i.e. the report is never successfully rendered. If you're using shared hosting, contact your hosting company and ask them for memory restrictions (if not listed in your plan details).

In general, Telerik Reporting is an embedded reporting engine, which primary goal is to analyze data and represent it in a human-readable format that is also suitable for printing. During this process, certain complex layout and paging rules are applied, so the great flexibility offered by the reporting engine comes at a price: increased processing times and memory footprint. In this line of thoughts, having limited resources for your application pool is not recommended.

Kind regards,
Steve
the Telerik team

BLOGGERS WANTED! Write a review about Telerik Reporting or the new Report Designer, post it on your blog and get a complimentary license for Telerik Reporting. We’ll even promote your blog and help bring you a few fresh readers. Yes, it’s that simple. And it’s free. Get started today >

0
Sobiya
Top achievements
Rank 1
answered on 24 Feb 2014, 11:15 AM
Hi KLEBER,

Had you got that resolved, as i am also getting the same error and not able to get any help or solution from anywhere. Can you give any solution.

Many thanks in advance,

Sobiya
0
KLEBER
Top achievements
Rank 1
answered on 24 Feb 2014, 12:51 PM
Hi Sobiya,

Yes I resolved but, in my case I change of server and I rented one server exclusive for me and I did all configuration.
My problem was my wold server WinHost configuration IIS.
My actual VPS is http://contabo.com/ 

If you has another question, send email form me. kbemvenuto@gmail.com

Tks,

Kleber Bemvenuto

0
Sobiya
Top achievements
Rank 1
answered on 25 Feb 2014, 06:23 AM

I am also getting the same error, but not finding any proper solution. Actually i am getting this error only when i am selecting the All Values in report parameter or maximum number of values, otherwise it works fine, so i think there is no problem with configuration or something and if i deploy my code then also it works fine, only giving error at my localhost.
Can anyone suggest what is the solution of this problem or how to trace the actual reason.

Many thanks in advance, attached is the screenshot of the error.

Sobiya

0
Hinata
Top achievements
Rank 1
answered on 27 Feb 2014, 05:17 PM
Hello Sobiya,

In general, it is hard to troubleshoot such issues because there is not a lot of information on the issue and it is also hard to reproduce. If you can provide some sample that would be great.
Also check if following this help article on hosting the WCF service in IIS helps: http://www.telerik.com/help/reporting/silverlight-hosting-in-iis.html.
0
Sobiya
Top achievements
Rank 1
answered on 28 Feb 2014, 09:33 AM
Hi Hardik,


I think its a problem with Bulk data because if there are large number of records then its giving error its working fine up to 2800 records. Can u tell is it a problem related to that? i have given the maximum buffer size, message size and enough timeout. Can u tell me where the problem is?
0
KS
Top achievements
Rank 1
answered on 28 Feb 2014, 07:42 PM
Tags
General Discussions
Asked by
KLEBER
Top achievements
Rank 1
Answers by
Steve
Telerik team
KLEBER
Top achievements
Rank 1
Sobiya
Top achievements
Rank 1
Hinata
Top achievements
Rank 1
KS
Top achievements
Rank 1
Share this question
or