Crystal Report viewer not showing the embedded image

1k Views Asked by At

Crystal Report viewer not showing the embedded image "the logo" of the report at the runtime, instead of an image i got a label with text "image" as you can see: enter image description here

and this the original one in the design mode enter image description here

I am using Visual Studio 2017 Pro, asp.net 4.5, and Crystal Report 13 ver. 13.0.25.3158.

I have tried everything mentioned in this post:
Crystal Reports images not visible in web viewer

here is the handlers in my web.config:

    <httpHandlers>
                <add verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=13.0.3500.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
        </httpHandlers>
<system.webServer>
    <handlers>
      <add name="CrystalImageHandler.aspx_GET" verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=13.0.3500.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" preCondition="integratedMode"/>
    </handlers>
    <validation validateIntegratedModeConfiguration="false"/>
  </system.webServer>   

the same problem in both my Dev laptop and the actual server. Any suggestion please?

1

There are 1 best solutions below

0
Ven On

Try to change the path in httpHandlers and in handlers section in web.config from :

path="CrystalImageHandler.aspx"

to

path="CrystalImageHandler*"

in web.config :

    <httpHandlers>
            <add verb="GET" path="CrystalImageHandler*" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=13.0.3500.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
    </httpHandlers>


<system.webServer>
<handlers>
  <add name="CrystalImageHandler.aspx_GET" verb="GET" path="CrystalImageHandler*" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=13.0.3500.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" preCondition="integratedMode"/>
</handlers>
<validation validateIntegratedModeConfiguration="false"/>

</system.webServer>