Celebrate Our 22nd Anniversary with Huge Savings! Up to 70% Off

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.

Follow 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 your website.

3. Click on Handler Mappings.

http handler mapping

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


add handler in IIS

6. Click OK.

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



Was this answer helpful?

« Back

chat