How to do it: Configure 3rd party assemblies for compilation

How to do it
Table of Contents

In case of a non registered assemblies on GAC the following steps must be followed:

1) Add a Reference to the Visual Studio project;
2) Set its Copy Local property to true in order to have the assembly be copied to Bin folder of the application .

If the assemblies are registered on GAC then a reference must be added to the “web.config” file:


How to add 3rd party assemblies to the "web.config" file
How to do it

A reference to the registered assemblies must be added to the “web.config” file on the assemblies sub-section, system.web section, as shown bellow:

<compilation debug="false" targetFramework="4.0">
        <add assembly="System.Data.Linq, Version=, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
        <add assembly="System.Design, Version=, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
        <add assembly="System.Web.Extensions.Design, Version=, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        <add assembly="System.Windows.Forms, Version=, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
        <add assembly="Office, Version=, Culture=neutral, PublicKeyToken=71E9BCE111E9429C"/>

[1] Refer to web.config file Framework 3.5 for description of changes introduced on Framework 3.5