FIX :: .INC INCLUDE FILES NOT LOADING IN ASP .NET WEBSITE

Sometimes, your website doesn't load .inc files like the footer. inc of your ASP .net website. The .inc is a part of the #include directive used to create functions, footer, or element which is reused on multiple pages on your website.

It is necessary to add ServerSideInclude IIS handler mapping so that .inc files can load properly on website elements like header and footer.

Please following the below steps to add ServerSideInclude IIS handler mapping at IIS:

  1. Log in to your Windows server via RDP.

  2. Open IIS Manager and browse to your website.

  3. Click on Handler Mappings.



  4. There will be an action bar at the top right corner. Click on Add Module Mapping.
  5. set the following parameters and click OK.

    Request Path = *.htm
    Module = ServerSideIncludeModule
    Name = SSI-htm



  6. Click OK.

Once the above handler mapping is added, the server will start serving include files .inc and header, footer elements will look properly.

  • Dedicative server
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

AFTER SUCCESSFUL SSL CERTIFICATE INSTALLATION, IT DISAPPEARED FROM IIS SERVER CERTIFICATES

Suppose, you want to install SSL certificate on your domain, you've obtained the SSL certificate...

FIX :: ASP SESSION TIMES OUT BEFORE SESSION TIMEOUT VALUE IN IIS

Problem Statement Session times out before session timeout valueIn many cases wherein,...