Reporting WCF Services

10 posts, 0 answers
  1. KLEBER
    KLEBER avatar
    6 posts
    Member since:
    Apr 2011

    Posted 11 Apr 2012 Link to this post

    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




  2. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 12 Apr 2012 Link to this post

    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.
  3. DevCraft banner
  4. KLEBER
    KLEBER avatar
    6 posts
    Member since:
    Apr 2011

    Posted 16 Apr 2012 Link to this post

    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!!
  5. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 19 Apr 2012 Link to this post

    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 >

  6. Sobiya
    Sobiya avatar
    21 posts
    Member since:
    Jan 2013

    Posted 24 Feb 2014 Link to this post

    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
  7. KLEBER
    KLEBER avatar
    6 posts
    Member since:
    Apr 2011

    Posted 24 Feb 2014 in reply to Sobiya Link to this post

    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

  8. Sobiya
    Sobiya avatar
    21 posts
    Member since:
    Jan 2013

    Posted 25 Feb 2014 in reply to KLEBER Link to this post

    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

  9. Hinata
    Hinata avatar
    146 posts
    Member since:
    Dec 2013

    Posted 27 Feb 2014 in reply to Sobiya Link to this post

    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.
  10. Sobiya
    Sobiya avatar
    21 posts
    Member since:
    Jan 2013

    Posted 28 Feb 2014 in reply to Hinata Link to this post

    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?
  11. KS
    KS avatar
    165 posts
    Member since:
    Oct 2012
Back to Top
DevCraft banner