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

Silverlight ReportViewer not showing Image

3 Answers 122 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
ChepA
Top achievements
Rank 1
ChepA asked on 21 Mar 2015, 02:06 PM
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?

3 Answers, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 25 Mar 2015, 03:44 PM
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.

 
0
ChepA
Top achievements
Rank 1
answered on 25 Mar 2015, 06:34 PM
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?

0
Stef
Telerik team
answered on 27 Mar 2015, 02:32 PM
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.

 
Tags
General Discussions
Asked by
ChepA
Top achievements
Rank 1
Answers by
Stef
Telerik team
ChepA
Top achievements
Rank 1
Share this question
or