DiscountASP.NET Support Portal
Language
 
Home>Knowledge Base>Components>General questions>How do I add an assembly reference in the web.config file?
Information
Article ID97
Created On11/6/2008
Modified8/7/2009
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.