IE shows "done" status and then stays blank

When trying to launch the Web application, the IE page shows a "done" status on the lower left hand corner and then it stays blank. The ActiveX has been correctly downloaded and the "run now, or run after download" screen also successfully displayed, after this screen, all the files seemed to download but the application login screen never appeared.

Cause: By default, the Web server running on Windows Server 2008 R2 + IIS 7 does not allow the following two types of files to be downloaded to a browser:

  1. Files with file extension, but not specified in IIS

  2. Files without file extension

Therefore, you would need to explicitly define these file types in IIS.

Solution:

Step 1: Find out what files of the Web application cannot be downloaded from Windows Server 2008 R2 + IIS 7.

  1. Go to AEM > Application > Client Features > Application name, and then set Allow user to select run mode to Yes.

    Figure 28. Set start and exit

    Set start and exit

  2. On the same AEM page, find out where local Web files are stored. For example: C:\Users\appeon\AppData\Roaming\appeon.

    Figure 29. Client storage location

    Client storage location

  3. Delete the local directory for the Web files. The folder is named after the Web application, for example, C:\Users\appeon\AppData\Roaming\appeon\localhost_Dotnet_<application-name>.

  4. Access the Web application in IE, and select Run After Download.

    Figure 30. Select run mode

    Select run mode

  5. In the Download Info window, make note of the type of files that cannot be downloaded, as you will then need to specify them in IIS explicitly.

    Figure 31. Download info

    Download info

Step 2: Set up the MIME types for files with file extension that cannot be downloaded.

  1. Open IIS Manager. Expand the Web Site hosting the Web application, expand the Web application folder, then click the sub-folder which contains the files that cannot be downloaded.

    The following table lists the sub-folder and what types of application files they contain, so you can easily determine which folder you will need to configure.

    Table 1. File type and folder name

    File type Folder name
    *.dat Located in the meta/merge folder.
    *.win, *.udo Located in the ole folder.
    *.dll, *.ocx Located in the plugin folder.
    *.bmp, *.jpg, *.ico Located in the image folder.
    f* Located in the merge folder.

    Suppose the *.win file cannot be downloaded, then click the "ole" folder.

    The following steps take the file extension .win as an example to show you how to create the MIME type for this file type. You may need to create multiple MIME types if there were more than one type of file extension listed from step 1.

  2. In Features View, double-click MIME Types, then in the Actions pane, click Add, and then in the Add MIME Type dialog box, set the File name extension to, in this example, .win, and set the MIME type to application/octet-stream, and click OK.

    Figure 32. Add MIME type

    Add MIME type

Step 3: Set up both MIME type and Handler Mapping for files without file extension that cannot be downloaded.

  1. Open the IIS Manager. Expand the Web Site hosting the Web application, expand the Web application folder, then click the "merge" folder.

  2. In Features View, double-click MIME Types, then in the Actions pane, click Add, and then in the Add MIME Type dialog box, set the File name extension to * and set the MIME type to application/octet-stream. Click OK.

    Figure 33. Add MIME type

    Add MIME type

  3. Click the "merge" folder again and then double click Handler Mapping in Features View.

    The following steps take the file name f### (where “###” is a number) as an example to show you how to create the mappings for this file group. You may need to create multiple mappings if there were more than one group of these files listed from step 1.

  4. Click Add Module Mapping in the Actions pane, and then in the Add Module Mapping dialog box, fill in the fields with the following values:

    • Request path: f* (or whatever the names were of the objects that were listed in the "Download info" screen from the first step above.)

    • Module: StaticFileModule, DefaultDocumentModule, DirectoryListingModule

    • Name: v (you can put whatever name you want here, as long as it does not conflict with an already existing mapping.)

    Figure 34. Add module mapping

    Add module mapping

  5. Then click the Request Restrictions … button; in the Mapping tab, check the box and select File or folder, and in the Access tab, select Read.

    Figure 35. Request restrictions

    Request restrictions

  6. Click the OK button to complete the setup, the mapping will be listed as shown below.

    Figure 36. Web service handler factory

    Web service handler factory

  7. Repeat 4, 5, & 6 to add a module mapping for "*", as shown below.

    Figure 37. Add module mapping

    Add module mapping