Fixing CLF or blank pages in the applications

If your application has no Common Looking Field pages it will show only very basic HTML structure. To fix the issue you can start here:

  1. Read article How to Fix NORMS When It Displays Nothing When Running Locally

  2. Read RDIMS #8252648. However, it is outdated at the moment (Jun-22-2022)

It is assumed that everything is installed in the proper order:

  1. Visual Studio with IIS Express

  2. StreamTagfilter 1.0.6.2 - version is important in the steps below!

  3. CLFPagePlugin

  4. CLFPagePlugin Templates in C:\Program Files (x86)\Transport Canada\CLFPagePlugin\Templates

 

There are 2 ways of setting the application CLF. It is fully related to IIS Express version. If you installed only VS2019 or below consider 1st way. If you installed VS2022 consider the second. However, keep in mind that if you somehow installed the very latest version of IIS Express then consider the second option. But it is fully ok to try #1 first and if it failed, try #2

 

Option #1 (oldest versions of IIS Express)

Try to run application first time and get HTML only page. This will initiate IIS Express settings. If you see the blank pages try this:

  1. Go to the source files folder and find hidden .VS folder

  2. There you can find something like

     

  3. Open config folder and find applicationhost.config file

  4. Open it and find <system.webServer><modules> section

  5. At the bottom of <modules> add this lines. Make sure that you didn’t add it somewhere else

    <add name="StreamTagFilter-2.0" type="Utility.IIS.StreamTagFilterModule, StreamTagFilter.NET.2.0, Version=1.0.5.0, Culture=neutral, PublicKeyToken=d3d707ec692e4024" preCondition="runtimeVersionv2.0" /> <add name="StreamTagFilter-4.0" type="Utility.IIS.StreamTagFilterModule, StreamTagFilter.NET.4.0, Version=1.0.6.2, Culture=neutral, PublicKeyToken=d3d707ec692e4024" preCondition="runtimeVersionv4.0" />
  6. The first line designed for .NET 2.0 - 3.9 and is outdated. The second line is for .NET 4.0 and higher. Make sure that the version in the lines is the same as installed version of StreamTagFilter in this example it is 1.0.6.2

  7. Save it and re-run the application.

  8. If this fails, try Option #2

 

Option #2 (newest IIS Express versions)

Try to run application first time and get HTML only page. This will initiate IIS Express settings. If you see the blank pages try this:

  1. Go to C:\Users\<username>\Documents\IISExpress\config and adjust applicationhost.config in the same way as above:

    1. Open applicationhost.config and find <system.webServer><modules> section

      <add name="StreamTagFilter-2.0" type="Utility.IIS.StreamTagFilterModule, StreamTagFilter.NET.2.0, Version=1.0.5.0, Culture=neutral, PublicKeyToken=d3d707ec692e4024" preCondition="runtimeVersionv2.0" /> <add name="StreamTagFilter-4.0" type="Utility.IIS.StreamTagFilterModule, StreamTagFilter.NET.4.0, Version=1.0.6.2, Culture=neutral, PublicKeyToken=d3d707ec692e4024" preCondition="runtimeVersionv4.0" />
  2. The first line designed for .NET 2.0 - 3.9 and is outdated. The second line is for .NET 4.0 and higher. Make sure that the version in the lines is the same as installed version of StreamTagFilter in this example it is 1.0.6.2

  3. Save it and re-run the application.