……………………………………………….Expertise in .NET Technologies

Deploying ASP.NET Application Files and Local Components (IIS 6.0)

Posted by Ravi Varma Thumati on May 1, 2009

To deploy an ASP.NET application, simply copy the application files you have created from your development computer to the production Web server that will host your application. You can use the XCOPY command-line tool or any FTP application to copy the files from one location to another.

To deploy assemblies that you want to share across Web applications, such as assemblies that contain custom ASP.NET server controls, you must deploy them to the global assembly cache. For more information, see the “Global Assembly Cache” topic in .NET Framework Help.


To deploy ASP.NET application files from the command line

  • From the Start menu, click Run.
  • In the Open box in the Run dialog box, type cmd, and then click OK.
  • At the command prompt, type the following command:

xcopy <source path> <destination path>

In this command, <source path> is a placeholder that represents the full path to the source files you want to copy, including the drive, the directory, and the file names. You can omit the file names if you want all files in the directory to be copied. The <destination path> placeholder represents the full path to the directory where the copied files should be placed.

You can use this procedure when you want to update a DLL stored in your application’s \Bin directory, or if you want to update any of your other application files. The following example copies a single DLL from a \Bin directory on one drive to a \Bin directory on another.

xcopy c:\devApp\bin\myAssembly.dll d:\liveApp\bin\

You can also use this command to update files in your application once you have deployed it. Although you can copy an entire directory at once, individual files must be copied one at a time. You can exclude subdirectories, files with a specific file name extension, or specific file names from being copied by using the XCOPY /exclude option. For more information on how to use the XCOPY tool, open Help for your operating system and search for XCOPY.

You must use physical directory names with the XCOPY tool. You cannot use virtual directory names.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: