
Deploying Assemblies | 231
ASP.NET
Deployment
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
new location, as described later in this chapter (this does not require step 1,
as the Copy Project command will take care of that as well).
As long as any assemblies you’re using are in the bin subdirectory of your applica-
tion and you’re not using COM components through COM Interop, it’s really
that simple. Because all application-specific configuration information is
contained in your web.config file(s), this information is automatically copied with
the application. In situations when you use shared assemblies, a little more work
is necessary, as we’ll discuss in the next section.
Deploying Assemblies
Assemblies are the basic unit of deployment for managed applications, including
ASP.NET applications. Assemblies are used in ASP.NET in several ways, each of
which has different implications for deployment. The three categories of assembly
are described below. The steps required to deploy application-specific and global
assemblies appear in subsequent sections.
Automatically generated assemblies
Includes assemblies that are dynamically generated by the ASP.NET runtime
for each .aspx page in your application, as well as for code-behind files iden-
tified by the
src attribute of the @ Page directive, and for global.asax and .ascx
user control files. ...