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

Below is a generic example on 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 required assembly in your web.config.  All managed .NET components will have a KB article with the components assembly information.

Add Feedback