VERIFIED SOLUTION i

Resolve Images not showing in questionnaire preview, layout mode in Portrait Dialogue


 

Issue

Images are not showing in Portrait Dialogue (PD) Questionnaires.  
They show up when designing the Questionnaire, but not in Layout mode, not in test and preview mode, and not in the web page.  

Cause

The most likely problem is that the Handler Mapping configuration in IIS for the MHWU web app does not include the handlers for files used by PD.


Another part of the problem might be that the correct version of the ".NET Framework" is not installed.  This will cause errors attempting to access any of the PD Web App.


Another possibility:
Looking at this web.config file: "C:\Program Files (x86)\PST\Million Handshakes Web\MHCwa\web.config"
Around line 90 in the < appSettings > grouping there is a key called "FileViewerUrl" change the setting there to the correct server.
It has been known to be set to the Server name, rather than a web site.

 

Resolution

UPDATED: April 21, 2017
As mentioned in the prerequisites part of the version-specific Installation guide, ensure that the correct version of the .NET Framework has been installed on the PD server.
For example, on Windows Server 2008: 
For PD 6.0 ensure that the ".NET Framework 4.5" has been installed on the PD server.


Make sure the handlers are there for all the file types, and that they are all pointing to the correct executable.  
For PD 6.0 ensure that the executable is set to "%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" 
For PD 5.2 ensure that the executable is set to "%windir%
\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll"

This is normally set up during the installation of the Web Applications.
If they are not there, then they can be added manually for the specific Web App (or at the web site level)
User-added image


Otherwise, there is a script attached to this article that can be run to add the extensions.  

To use the script:
  • Upload the appmappingscript.txt to the server.
  • Rename this to: appmappingscript.vbs
  • Edit the script to set the correct Site.
    • edit these parameters, as required.
      • ArgDomain = "localhost"
      • ArgWebServer = "Default Web Site"
      • ArgVirtualDir = "MHWU"
  • Open an administrative command prompt.
  • Run: cscript appmappingsscript.vbs


Another possibility: The web.config file: "C:\Program Files (x86)\PST\Million Handshakes Web\MHCwa\web.config"
Around line 90 in the < appSettings > grouping there is a key called "FileViewerUrl".  Change the setting there to the correct server/web site.