How do I add an assembly reference in the web.config file?

To access the ASP.net components installed on DiscountASP.NET web servers, you have two options:
  • Register the assembly in the page you wish to use the component
  • Reference the assembly with the web.config file in the application
The following is the generic form of how to add an assembly reference in the web.config file.

<configuration>
  <system.web>
    <compilation>
      <assemblies>
        <add assembly="<AssemblyName>, Version=<Version>, Culture=<Culture>, PublicKeyToken=<PublicKeyToken>"/>
      </assemblies>
    </compilation>
  </system.web>
</configuration>


Note: You will need to insert the correct AssemblyName, Version, Culture, and PublicKeyToken for the assembly in the web.config.

Note: You can find the detailed assembly version information (e.g., AssemblyName, Version, Culture, PublicKeyToken) in the Knowledge Base articles related to the specific component you desire to use in the Components folder.

Article ID: 97, Created On: 11/6/2008, Modified: 4/22/2011