Introduction
In this wiki topic, we will guide our users to make use of Aspose.Form by making a small configuration in web.config files of their web applications. This small configuration is to add an HttpModule to the web.config file. Let's have more detail about it.
Configuring Web.config File
What is an HttpModule?
An HttpModule can be considered as a simple object that you normally use in your daily applications while coding. It is developed as a class that implements IHttpModule interface. There are many Http Modules that we already use as the part of our ASP.NET applications. The most common example is Session State module that is used to handle sessions. In simple words, an HttpModule is something that can take a web request and handle it before a Page object is created.
Adding HttpModule to Web.config
Aspose.Form also makes use of HttpModule to handle web requests for InfoPath forms. So, before making use of Aspose.Form, you would need to add a couple of lines to your Web.config file as shown below:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
<httpModules>
<add name="CustomModule" type="Aspose.Form.Web.Controls.Custom.CustomHttpModule, Aspose.Form"/>
</httpModules>
</system.web>
</configuration>
From the above lines, it is clear that you will have to add a CustomHttpModule to <httpModules> section of <system.web>. Once you apply this configuration setting to your Web.config file, you are ready to use Aspose.Form control in your web pages to view InfoPath forms.