Silverlight ReportViewer not showing Image

4 posts, 0 answers
  1. ChepA
    ChepA avatar
    10 posts
    Member since:
    Jan 2014

    Posted 21 Mar 2015 Link to this post

    Hi,
    I'm developing reports on StandAlone Report designer. The report consists to get all users from DB and show them in a list. I read how to create custom functions in order to transform users images that is as string64 in DB to Image in PictureBox. In this case, it's work very well.
    So, then i decided to test on my Silverlight application. Configure web.config on my project as well but it didn't work. I follow this example this example in this same report and it works fine but the images does not show.

    What i'm doing wrong?
  2. Stef
    Admin
    Stef avatar
    3610 posts

    Posted 25 Mar 2015 Link to this post

    Hello ChepA,

    If the report's preview displays the images from the database successfully, please use the browser's console or Fiddler to check if requests for images are OK. The problem might be related to missing endpoint settings for resources - Images, Charts, Barcodes and Shapes are not being displayed in the Silverlight report viewer.

    Let us know how it goes and the result from Fiddler on requests for images.

    Regards,
    Stef
    Telerik
     

    See What's Next in App Development. Register for TelerikNEXT.

     
  3. ChepA
    ChepA avatar
    10 posts
    Member since:
    Jan 2014

    Posted 25 Mar 2015 in reply to Stef Link to this post

    Hello Stef, thank you for replay.

    I saw in Fiddler the requests for my ReportServices and the request was:
    http://localhost/MsaServices/Services/MsaReportService.svc/resources/getrenderstream?instanceID=2d445507-6b73-4a77-89e0-044572baf74e&name=9584f7f8e8514bb299433777e5b13765

    and the response was HTTP/1.1 400 Bad Request.

    Here my Web.config:
     <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true"/>
        <services>
          <service name="MsaReportService" behaviorConfiguration="ReportServiceBehavior">
            <endpoint address="" binding="basicHttpBinding" contract="Telerik.Reporting.Service.IReportService"/>
            <endpoint address="resources" binding="webHttpBinding" behaviorConfiguration="WebBehavior" contract="Telerik.Reporting.Service.IResourceService"/>
            <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
          </service>
        </services>
        <behaviors>
          <serviceBehaviors>
            <behavior name="ReportServiceBehavior">
              <serviceMetadata httpGetEnabled="true" />
              <serviceDebug includeExceptionDetailInFaults="false" />
            </behavior>
          </serviceBehaviors>
          <endpointBehaviors>
            <behavior name="WebBehavior">
              <webHttp />
            </behavior>
          </endpointBehaviors>
        </behaviors>

    And my MsaReportService.svc:
    <%@ServiceHost Service="MsaServices.Report.CustomReportService"%>

    On your seggested link, i tried the second solution and still no works. Am I doing something wrong?

  4. Stef
    Admin
    Stef avatar
    3610 posts

    Posted 27 Mar 2015 Link to this post

    Hello ChepA,

    The service name must be the same as the one used in the SVC file - How to: Implement and use custom IReportResolver.

    If the problem is not related to the configuration, please open a support ticket and send us the whole log file from Fiddler and web.config, including the customized service's code.

    Regards,
    Stef
    Telerik
     

    See What's Next in App Development. Register for TelerikNEXT.

     
Back to Top