Answered WSRP : Images from remote portlets are not displayed?

  • Thursday, April 05, 2012 9:11 AM
     
     

    We are using the WSRP Viewer web part to add a remote portlet to one of the pages.
    The WSRP producer is configured to be trusted by adding the following in the TrustedWSRPProducers.xml file.
    <Configuration>
        <Producer Name="TestProducer" AllowScripts="true">
            <ServiceDescriptionURL>http://10.40.37.101/tdrp/portlets/WSRPServiceDescriptionService</ServiceDescriptionURL>
            <RegistrationURL>http://10.40.37.101/tdrp/portlets/WSRPRegistrationService</RegistrationURL>
            <MarkupURL>http://10.40.37.101/tdrp/portlets/WSRPBaseService</MarkupURL>
            <PortletManagementURL>http://10.40.37.101/tdrp/portlets/WSRPPortletManagementService</PortletManagementURL>
        </Producer>
    </Configuration>
    The producer provides only one portlet called "TestPortlet", which we configured to view in the WSRP Viewer web part.
    The portlet is supposed to display a form and an image for logo. The portlet displays the form but the image is not displyed.
    On checking the logs we found the following entry:

    Selected WSRP portlet server http://10.40.37.101/tdrp/portletresource/C:10.40.37.101:-c77d887:13527ebc696:-7ff9/S:10.40.37.101:-c77d887:13527ebc696:-7ff8:E:0:default/images/logo.gif is not trusted on this server.

    How to specify that the image is coming from a trusted server?

    Note: On J2EE based WSRP consumers the image is being rendered by the portlet.

All Replies

  • Tuesday, April 10, 2012 1:49 AM
    Moderator
     
     

    Hi,

    Thank you for your post.

    I am trying to involve someone familiar with this topic to further look at this issue.


    Xue-mei Chang

    TechNet Community Support

  • Tuesday, April 10, 2012 3:39 AM
     
     
  • Sunday, April 15, 2012 4:38 AM
     
     

    The information at this link doesn't help. We have successfully configured the portlet.

    The portlet is supposed to display a form and an image for logo. The portlet displays the form but the image is not displyed. On checking the logs we found the following entry:

    Selected WSRP portlet server http://10.40.37.101/tdrp/portletresource/C:10.40.37.101:-c77d887:13527ebc696:-7ff9/S:10.40.37.101:-c77d887:13527ebc696:-7ff8:E:0:default/images/logo.gif is not trusted on this server.

    How to specify that the image is coming from a trusted server?

  • Tuesday, April 17, 2012 1:23 PM
    Moderator
     
     Answered Has Code

    Hello,

    This generally happens due to invalid configuration at C:\Program Files\Microsoft Office Servers\14.0\Config\TrustedWSRPProducers.config file. Please review/re-create this file with the below sample.

    <Configuration xmlns="http://schemas.microsoft.com/office/sps/2005/WSRP/Configuration" ProxyAddress="http://ProxyIfAny:80">
       <Producer Name="NetUnity" AllowScripts="true">
       <ServiceDescriptionURL>http://wsrp.netunitysoftware.com:80/WSRPTestService/WSRPTestService.asmx</ServiceDescriptionURL>
       <RegistrationURL>http://wsrp.netunitysoftware.com:80/WSRPTestService/WSRPTestService.asmx</RegistrationURL>
       <MarkupURL>http://wsrp.netunitysoftware.com:80/WSRPTestService/WSRPTestService.asmx</MarkupURL>
       <PortletManagementURL>http://wsrp.netunitysoftware.com:80/WSRPTestService/WSRPTestService.asmx</PortletManagementURL>
       <RedirectServers><RedirectServer>wsrp.netunitysoftware.com</RedirectServer></RedirectServers>
             <!--SsoApplication Name="NetunityWSRP"/-->
     </Producer>
    </Configuration>
    


    Please remember to click 'Mark as Answer' on the post that helps you or click 'Unmark as Answer' if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

    Regards,
    Nishant Shah
    Microsoft Online Community Support

    • Marked As Answer by Naresh Shorey Wednesday, April 18, 2012 11:04 AM
    •  
  • Wednesday, April 18, 2012 11:08 AM
     
     

    Many thanks Nishant.

    The configuration file was fine. All it was missing was the RedirectServers tag, which did the job. The following configuration works perfectly fine:

    <Configuration xmlns="http://schemas.microsoft.com/office/sps/2005/WSRP/Configuration">
      <Producer Name="TestProducer" AllowScripts="true">
         <ServiceDescriptionURL>http://10.40.115.200/tdrp/portlets/WSRPServiceDescriptionService</ServiceDescriptionURL>
         <RegistrationURL>http://10.40.115.200/tdrp/portlets/WSRPRegistrationService</RegistrationURL>
         <MarkupURL>http://10.40.115.200/tdrp/portlets/WSRPBaseService</MarkupURL>
         <PortletManagementURL>http://10.40.115.200/tdrp/portlets/WSRPPortletManagementService</PortletManagementURL>
         <RedirectServers><RedirectServer>10.40.115.200</RedirectServer></RedirectServers>    
     </Producer>
    </Configuration>