473,320 Members | 1,848 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

xcopy of ASP.NET applications


Whereas Microsoft highlights the concept of "xcopy deployment" for .NET
applications, I gather that it is not necessarily possible to move an
ASP.NET application from one computer to another via xcopy. After doing
some simple development via vs.net I found that xcopy'ing my app from a
development workstation to the production server didn't work, but I easily
dealt with that problem via vs.net's "copy project" menu command. I assume
that "copy project" is altering metadata within certain files to configure
the app for the target computer, and perhaps making some changes in IIS on
the target to set up the new application. So far, so good.

But today I decided to use some sample code from that I downloaded from the
web. I put the collection of files for the sample application into a new
directory withing the wwwroot directory (where IIS is running on my local
development client computer.) When I try to load the code in vs.net, I am
not able to do so. I've tried opening via both the .sln file and the
..csproj file, but neither works.

Is there a good article somewhere that describes the general topic of moving
application files around between multiple development workstations and
finally to the production server? This whole topic has been confusing to
me, and none of the .NET or ASP.NET books I own seem to cover it.

Thanks!
Bruce Schechter
Nov 18 '05 #1
2 1730
Hi James,
Thank you for using Microsoft Newsgroup Service. Based on your description,
you want to get some detailed information on deploying an ASP.NET web
application, especially the "xcopy" deployment. Please feel free to correct
me if my understanding of your problem is not quite exact.

Generally, in dotnet, since all the components( dotnet assemblies ) are
self described, so when we want to redistribute a application, we can just
use xcopy to move the application and its denpendent assemblies(if needed
also include the application config file). As for the ASP.NET web
application, if you are using the code-behind page class, all the page
class will be build into the application's assembly. So when you've
finished developing your web app, you can just use xcopy to move all the
page files(aspx) and asax or ... and some other config file such as
web.config to the deployment place. In addition, since the ASP.NET is web
application, you need to create a Virutal Directoy in IIS for the
application, not just copy to a directory under the IIS's root directoy. To
make it clearly, you may try creating a simple ASP.NET application in
VS.NET. After add some code and build it. Then, copy the things I mentioned
above to another new virtual Directoy to see whether it works, that'll help
you get it more clear.

As for the "Copy Project" function in VS.NET you mentioned, yes, it can
help to copy one project to another new web based url position. The VS.NET
will help you create Virtual Directory, project files and copy source files
to the destinate position. However, I think this is mostly used when you're
still develping a ASP.NET web project, and you want to genreate a copy of
the project. For deployment time, the project files are not necessary to
copy, also the page class's file are not necessary if you are using the
code-behind mode and build them into assemblies as I mentioned above. For
more information on deployment for ASP.NET application or the Copy project,
you may reference the tech articles in MSDN, here is some of their weblinks:

#Deployment Scenarios
http://msdn.microsoft.com/library/en...oymentscenario
s.asp?frame=true

#Walkthrough: Deploying an ASP.NET Web Application
http://msdn.microsoft.com/library/en...throughdeployi
ngaspnetwebapplication.asp?frame=true

#Determining When to Use Windows Installer Versus XCOPY
http://msdn.microsoft.com/library/en...inst.asp?frame
=true
#Copy Project Method
http://msdn.microsoft.com/library/en...projvsprojectc
opyproject.asp?frame=true

Please check out the above suggestions to see whether they are helpful.
Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 18 '05 #2
Hi Steven,

This is very helpful, and thanks for the articles.

Done!

Cheers,
Bruce
"Steven Cheng[MSFT]" <v-******@online.microsoft.com> wrote in message
news:Pw**************@cpmsftngxa07.phx.gbl...
Hi James,
Thank you for using Microsoft Newsgroup Service. Based on your description, you want to get some detailed information on deploying an ASP.NET web
application, especially the "xcopy" deployment. Please feel free to correct me if my understanding of your problem is not quite exact.

Generally, in dotnet, since all the components( dotnet assemblies ) are
self described, so when we want to redistribute a application, we can just
use xcopy to move the application and its denpendent assemblies(if needed
also include the application config file). As for the ASP.NET web
application, if you are using the code-behind page class, all the page
class will be build into the application's assembly. So when you've
finished developing your web app, you can just use xcopy to move all the
page files(aspx) and asax or ... and some other config file such as
web.config to the deployment place. In addition, since the ASP.NET is web
application, you need to create a Virutal Directoy in IIS for the
application, not just copy to a directory under the IIS's root directoy. To make it clearly, you may try creating a simple ASP.NET application in
VS.NET. After add some code and build it. Then, copy the things I mentioned above to another new virtual Directoy to see whether it works, that'll help you get it more clear.

As for the "Copy Project" function in VS.NET you mentioned, yes, it can
help to copy one project to another new web based url position. The VS.NET
will help you create Virtual Directory, project files and copy source files to the destinate position. However, I think this is mostly used when you're still develping a ASP.NET web project, and you want to genreate a copy of
the project. For deployment time, the project files are not necessary to
copy, also the page class's file are not necessary if you are using the
code-behind mode and build them into assemblies as I mentioned above. For
more information on deployment for ASP.NET application or the Copy project, you may reference the tech articles in MSDN, here is some of their weblinks:
#Deployment Scenarios
http://msdn.microsoft.com/library/en...oymentscenario s.asp?frame=true

#Walkthrough: Deploying an ASP.NET Web Application
http://msdn.microsoft.com/library/en...throughdeployi ngaspnetwebapplication.asp?frame=true

#Determining When to Use Windows Installer Versus XCOPY
http://msdn.microsoft.com/library/en...inst.asp?frame =true
#Copy Project Method
http://msdn.microsoft.com/library/en...projvsprojectc opyproject.asp?frame=true

Please check out the above suggestions to see whether they are helpful.
Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: xo55ox | last post by:
After setting up the linked server connection at the standby server, I tried to xcopy a file through the sql server 2000 schedule task to the standby server's shared directory. But it keeps giving...
3
by: Ryno Rijnsburger | last post by:
I am busy packaging our product as a standard Setup project in VS.NET that uses a bunch of merge modules (basically, a merge module for every key infrastructure component in our system). Part...
6
by: Zeya | last post by:
I am developing a ASP.Net(Web) based deployment tool, which requires XCOPY functionality. Here is the code for the method: public static int ExecuteProcess ( string ProcessName, string...
2
by: Grigs | last post by:
Hello, I am attempting to write a Web Method in my Web Service that starts a process that runs the XCOPY command with passed in parameters. It is failing on me through code. However, if I take...
5
by: Volker Jobst | last post by:
Hi. I have this code: Dim p As New Process Dim info As New ProcessStartInfo Dim sa As New ArrayList Dim s As String Try With info
1
by: lizii | last post by:
At the moment my company have asked me to look into installations. We use pure .NET applications and although i have looked into installer programs (installshield...wise..etc) none of them are...
1
by: vinayakkatkam | last post by:
public bool ProcessXCopy() { string XCopyArguments = "C:\\Documents and Settings\\Vinayak.Katkam\\Desktop\\SYNCHRONIZATION\\BASE-VERSION\\SDDS\\*.* " + "C:\\Documents and...
1
by: Dave | last post by:
I'm trying to do the following xcopy from my Windows installer and it doesn't work. I even tried running the installer as user with credentials instead of LocalService. I'm running in 2003Server,...
3
by: Liz | last post by:
I was intending to use an XCOPY install for a VS2005 C# WinForms app but when I copied the files and ran the app on a clean machine it failed when it needed Crystal Reports. Can you not use XCOPY...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.