|
ASP.Net application can be deployed in following ways:-
Option 1. XCOPY Deployment i. Go to command prompt and use the following XCOPY Command:- XCOPY C:\Inetpub\wwwroot\MyProject1 \\TargetServer\MyProject1 /E /K /R /O /H /I Available Arguments:- / I - This option tells XCOPY to assume that the destination is a directory and create it if it does not already exist. / R - This option overwrites files marked as read only. / E - This option copies directories, subdirectories, and files, including empty ones. / K - To retain the original attributes with the copied files, you must use the / K parameter. XCOPY command does retain file attributes by default. For example, if a file had the read-only attribute, that attribute would be lost after the file is copied. / O - This option preserves all security-related permission ACLs of the file and folders. / H - This option copies both hidden and system files.
Option 2. Using the Copy Project option in VS .NET:- i. Select Project->Copy Project from the menu. ii. Select the following options:- a. Destination Project Folder: b. Web access method: iii. Copy: Please select the appropriate option from the available three types.
Option 3 Deployment using VS.NET installer:- If your application requires more robust application setup and deployment requirements, VS .NET installer can be the right choice.
i. Go to File->Add Project-> New Project from the menu. ii. In the New Project dialog box, select Setup and Deployment Projects from the Project Types pane and then select Web Setup Project in the Templates pane.
Sushant Khandekar. India, Pune khandekarsushant@hotmail.com
|