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 Add Website in IIS?

This article will assist you to add new website in IIS. If you have opted for the WebsitePanel,...

How to Run Multiple PHP Versions in Windows VPS?

There are times when your PHP websites rely on functions/features that are available only in some...

How to Configure FTP User Isolation in IIS 7?

Following article will assist you to configure FTP user isolation in IIS web server. In IIS...

How to Block an IP address From Visiting My Websites Through IIS?

You can restrict the access of any particular website for any specific IP address. You can add an...

How to resolve configuration error of 'targetFramework'?

Steps to Change Application Pool of a Website from IIS: Login to your VPS. Open Start >...