How to deploy an ASP.NET Web application using Xcopy deployment
This article was previously published under Q326355 On This PageSUMMARY This article describes how to use the MS-DOS Xcopy command to deploy a Microsoft ASP.NET Web application. Xcopy
style deployment is not suited for all situations. For large Web sites and
for line-of-business applications, we recommend that the site be temporarily
taken offline. You want to do this while the new content and the application assemblies are deployed.
You should perform this maintenance at a convenient, scheduled time. To minimize the scheduled downtime, follow these steps:
What is Xcopy deployment?Xcopy deployment describes deployment in ASP.NET where you use the drag-and-drop feature in Microsoft Windows Explorer, File Transfer Protocol (FTP), or the DOS Xcopy command to copy files from one location to another. The ASP.NET application requires no modifications to the registry and has no special installation requirements for the host company on hosted sites.The advantages of Xcopy deploymentAn Xcopy-style file transfer simplifies the deployment and the maintenance of ASP.NET sites because you make no registry entries and because you register no components. The Microsoft .NET applications are self-describing, typically with no dependencies. With assembly versioning, you can even copy a new copy of a DLL that the application uses without stopping the Web server.The differences between Xcopy deployment and Copy Project in Visual Studio .NETXcopy deployment does not require that you install any special software on the development computer or on the Web server. The Visual Studio .NET Copy Project method requires that you install Microsoft FrontPage Server Extensions (FPSE) on the remote server. Xcopy also permits you to replace only the most recently-edited files. You can either select the files manually to replace them, or you can use the /d switch on the Xcopy command to specify the date, as follows:xcopy source [destination] /D:m-d-y Set the virtual directory as an Internet Information Services (IIS) applicationIf you have not already set up the destination directory, you must set it up as an application in Microsoft Internet Information Services (IIS) before you transfer the files. To set up the virtual directory, follow these steps:
172138 (http://support.microsoft.com/kb/172138/)
How to create a virtual directory in Internet Information Services (IIS)
TroubleshootingIn some cases you cannot complete the deployment of the ASP.NET Web application through the Xcopy file transfer alone. These cases include the following:
REFERENCES For more information about deploying Microsoft .NET
solutions that use Xcopy, visit the following Microsoft Developer Network (MSDN) Web site:
Determining When to Use Windows Installer Versus Xcopy (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/xcopywininst.asp) For more information about the .NET utility library that manages
the Global Assembly Cache that also provides a command-line interface tool,
visit the following Microsoft Developer Network (MSDN) Web site: Global Assembly Cache Utility (GACUTIL.EXE) (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cptutorials/html/global_assembly_cache_utility__gacutil_exe_.asp) For more information about Microsoft Enterprise Services (COM+)
that are included in the .NET Framework, visit the following Microsoft
Developer Network Web site: Understanding Enterprise Services (COM+) in .NET (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/entserv.asp) For additional
information, click the article number below to view the article in the
Microsoft Knowledge Base: 315682 (http://support.microsoft.com/kb/315682/EN-US/) How To Install an Assembly into the Global Assembly Cache in Visual Studio .NET
| Article Translations
|
Back to the top
