FIX :: .inc include files not loading in ASP .NET website

Sometimes, your website doesn't load .inc files like footer.inc of your ASP .net website.The .inc is a part of #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. Login into your windows server via RDP.

  2. Open IIS Manager and browse to your website.

  3. Click on Handler Mappings.

    http handler mapping

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

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

    add handler in IIS

  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.


  • 0 Users Found This Useful

Was this answer helpful?

Related Articles

How to set periodic recycling for application pool in IIS 7?

Following are the steps to set periodic recycling for the application pool in IIS 7: Login to...

How to generate CSR key and install SSL certificate on IIS 8?

SSL (Secure Sockets Layer) is an encryption technology, which creates an encrypted connection...

How to export an SSL certificate from Windows server?

Following are the steps to Export an SSL Certificate from the Windows Server: Open IIS...

How to change ASP session timeout from IIS 7?

Sessions are used to maintain a stateful HTTP connection. When session state is enabled for your...

How to access your website via remote IIS?

First of all, you need to contact our support team in order to enable remote IIS login for your...