Issues When Viewing Report..

7 posts, 0 answers
  1. Muaath Jamil
    Muaath Jamil avatar
    2 posts
    Member since:
    Feb 2010

    Posted 23 Mar 2011 Link to this post

    (objectDataSource While Getting data From WCF)

    Hi All,,

    From your demos I fall in love with your products *_*,, So thank you a lot ....

    I'm kind off new to Telerik Reporting Tool..

    I have a WPF Application Built In MVVM (Model-View-View Model) and it Gets the data inside the Model from a WCF..
    It works as a charm..

    Now I want to replace the reporting feature in the application with the one your product is providing...

    so I've started by creating a ReportsLibrary Project..
    Then I've Created the DataSource as an objectDatatSource (So It Reads the data from the following method in the Model Class)

    public static List<ALERT> Load()
                List<ALERT> myList = new List<ALERT>();
                AlertServices.AlertServiceClient AlertClient = new AlertServices.AlertServiceClient();
                AlertClient.ClientCredentials.UserName.UserName = "usrName";
                AlertClient.ClientCredentials.UserName.Password = "password";
                ALERT[] dtAlerts = AlertClient.getAllAlerts();
                foreach (ALERT alrt in dtAlerts )
                return myList;

    Everything went smoothly with the report design which I have called AllAlerts..

    when i tried to review the report before adding it to the WPF application I have got this Error Message...
    (An Image Is Attached)

    An error has occurred while processing Report 'AllAlerts':
    Exception has been thrown by the target of an invocation.
    ------------- InnerException -------------
    Could not find default endpoint element that references contract 'AlertServices.IAlertService' in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this contract could be found in the client element.
    Telerik Reporting v5.0 trial version. Copyright Telerik © 2002-2011.
    To remove this message, please obtain a commercial version from  

    Noting That I have Added The Project In The Same Solution That All It is Projects Are working soo fine..

    And The Following (app.config) Configuration File is located in the ReportsLibrary Project..

    <?xml version="1.0" encoding="utf-8" ?>
                    <binding name="wsHttpAlrEndpoint" closeTimeout="00:01:00" openTimeout="00:01:00"
                        receiveTimeout="00:10:00" sendTimeout="00:01:00" bypassProxyOnLocal="false"
                        transactionFlow="false" hostNameComparisonMode="StrongWildcard"
                        maxBufferPoolSize="524288" maxReceivedMessageSize="1024000"
                        messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true"
                        <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
                            maxBytesPerRead="4096" maxNameTableCharCount="16384" />
                        <reliableSession ordered="true" inactivityTimeout="00:10:00"
                            enabled="false" />
                        <security mode="Message">
                            <transport clientCredentialType="Windows" proxyCredentialType="None"
                                realm="" />
                            <message clientCredentialType="UserName" negotiateServiceCredential="true"
                                algorithmSuite="Default" />
                <endpoint address="http://muaath.local/TRDWCFSurv/TRDWCFSurvServices.AlertService.svc"
                    binding="wsHttpBinding" bindingConfiguration="wsHttpAlrEndpoint"
                    contract="AlertServices.IAlertService" name="wsHttpAlrEndpoint">

    I hope That I will find the solution here.. *_*

    By The Way I've Tried To View The Rreport from The WPF ReportViewer but I've Got Errors Adding The Viewer Control To The WPF View.. (So Lets Find a Solution for the First Problem First Then I Will Give You More Details About The Second One) *_*

    My Best Regards..
  2. Steve
    Steve avatar
    10941 posts

    Posted 28 Mar 2011 Link to this post

    Hi Muaath,

    We've prepared a blog post on using Telerik Reporting with WCF RIA service with detailed explanations and sample project. For more information please refer to:Using Telerik Reporting with WCF RIA Services blog post.

    the Telerik team
  3. Muaath Jamil
    Muaath Jamil avatar
    2 posts
    Member since:
    Feb 2010

    Posted 29 Mar 2011 Link to this post

    Hi Telerik Admin *_*,,
        Thank You for your response. In fact i have reviewed this post already but i didn't find the solution although it was really helpfull. I've figured out that the Library won't read the endpoints from the config file in view mode. But it works fine when I tried to vied the report from a WPF apllication.

        The Second problem I'v faced was that It Gave me errors when I tried to add the ReportViewer To The WPF Application but i've descovered that the problem was the Telerik.Windows.Controls, Telerik.Windows.Controls.Input, Telerik.Windows.Controls.Navigation and Telerik.Windows.Data assemplies were for old release. so i've replaced them with the new release and it works as fine as expected..

    Only The Issue is that why the View doesn't get the endpoint from the config file..

    Best Regards,, *_*
  4. Nandita
    Nandita avatar
    9 posts
    Member since:
    Mar 2011

    Posted 05 Apr 2011 Link to this post

    Is there posibility in near future so that the library may read from the config file?
  5. danparker276
    danparker276 avatar
    389 posts
    Member since:
    Aug 2010

    Posted 04 Feb 2013 Link to this post

    Is there a request or anything for this feature (have the reports read for the app.config file for the endpoint).  It makes it very hard to test my reports.  It works, but I have to compile the dll and have a web service project call the new report and display it in

    I'm getting all my data from a webservice for WPF client side reports.  If I connect to the database directly from my WPF reports, it's a big security risk and people can spy on the database connection string.  This forces me to get the data from my WCF services (I don't do RIA, but it's the same method anyway).  I need client side because the reports take a heavy toll on the server.
  6. Peter
    Peter avatar
    1629 posts

    Posted 07 Feb 2013 Link to this post

    Hi Dan,

    The Telerik Reporting engine is an embedded reporting engine and as such it is usually hosted inside a 3rd party application (ex. console, Windows Forms, Web). When previewing a report in the VS Report Designer, the most important thing to notice is that the reporting engine is hosted inside the VS application (devenv.exe) so the devenv.exe.config is the only config file that takes effect. Although any projects inside VS can have config files they are not applied at design time. For more information please see Application Configuration Files in MSDN.

    Kind regards,
    the Telerik team

    HAPPY WITH REPORTING? Do you feel that it is fantastic? Or easy to use? Or better than Crystal Reports? Tell the world, and help fellow developers! Write a short review about Telerik Reporting and Telerik Report Designer in Visual Studio Gallery today!

  7. danparker276
    danparker276 avatar
    389 posts
    Member since:
    Aug 2010

    Posted 07 Feb 2013 Link to this post

    Hi, thank you for your answer, it works great now.  I just put my  <system.serviceModel> ... into my <users>\AppData\Local\Microsoft\VisualStudio\11.0\devenv.exe.conf and it worked.

    EDIT: FYI you need to change the file in C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE or the others will get overridden.  You might have to change permissions to that file.  
Back to Top