473,503 Members | 241 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Deploying a simple app.

Ant
Hi, I'm a newbie to .NET so...
After developing a simple, non distributed application (if that's still
applicable these days), how do I move the appliation to another PC?
Is it simply a matter of copying a folder, or exe file over? If so, do you
copy over the bin folder, the obj folder or just the exe file? Both seem to
work for me but what is the proper way?

Thanks for any ideas on this.
Ant
Feb 10 '06 #1
4 1102
If you use 100% .Net component. Just copy everything from the \bin folder
PLUS any runtime file of your application such as runtime images or
configuration files etc...

"Ant" wrote:
Hi, I'm a newbie to .NET so...
After developing a simple, non distributed application (if that's still
applicable these days), how do I move the appliation to another PC?
Is it simply a matter of copying a folder, or exe file over? If so, do you
copy over the bin folder, the obj folder or just the exe file? Both seem to
work for me but what is the proper way?

Thanks for any ideas on this.
Ant

Feb 10 '06 #2
if you dont use the GAC or any components that use the GAC then you can
just copy and paste. You'll probably want to create an MSI installer
for it though so you can create short cuts. You'll only need the EXE
and any DLL it access. If any components use the GAC then you'll need
to use MSI installer.
Curtis
http://www.ghostclip.com
The Premier Help System For Developers

Feb 10 '06 #3
btw.. the object files are intermediate files that are not needed.
they are used by linker.

Feb 10 '06 #4
Copy and paste the contents of the bin\release folder after release build of
course - if you use any config or references to other projects or dlls they
will automatically updated. If you any external resources such as images or
data files, these shuld be in this or in a subfolder.

Copying the files over is referred to as 'xcopy' deployment.

You can run a dotnet app from a fileserver, but you are severely restricted
to what it can do. You'll get security exceptions if you do anything more
ambitious than display some forms and controls. With the framework
configuration, you can grant an app more permisions, but then I would urge
you to sign it with a strong name (sn) or a private key and only allow those
to run. Similarly you can launch a .net app from a webpage.

Consider putting your dlls in the Global Application Cache (GAK) if you have
a stable dll that if used across a number of applications.

VS 2005 introduces a number of cool options to make deployment a whole lot
easier.

I hope that helps.

Arnd Hurlbrink
"Light" <Li********@gmail.com> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
if you dont use the GAC or any components that use the GAC then you can
just copy and paste. You'll probably want to create an MSI installer
for it though so you can create short cuts. You'll only need the EXE
and any DLL it access. If any components use the GAC then you'll need
to use MSI installer.
Curtis
http://www.ghostclip.com
The Premier Help System For Developers

Feb 10 '06 #5

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

Similar topics

10
2048
by: Gerben van Loon | last post by:
Hi there, hope someone can help me on this: I'm planning to deploy several ASP.NET projects to a production server. Normally I used the "Project / Copy project" option in VS.NET, but to this...
14
1363
by: ReidarT | last post by:
I have made a VB.net-program and built it. The result has been placed in the bin-folder with only one file. The program copies one file from one folder to another. When I run the program...
0
1145
by: lmm | last post by:
Here are the steps that I used to deploy the project: -right-clicked on my solution project and selected add new project -I selected "Web Setup project" - right-clicked on the "Web Application...
1
1150
by: Adam Knight | last post by:
Hi all, I have started using VS as opposed to Web Matrix, thus benefiting from the ability to precompile my app. With VS I know all my app code is compiled in the bin directory, so all...
5
2152
by: Richard Mintz | last post by:
Hi, I am trying to deploy a C# application to a Windows 2000 machine. When I try to run the app after the install i get a runtime error. the setup works on both XP and windows 2003 server...
10
2120
by: Bryan Dickerson | last post by:
I fairly have my Web Service working the way that I want, so my next step will be to deploy it on a server. Do I just add a deployment/install project, build it and install it on the server? ...
0
1391
by: Rich | last post by:
Hello, I have a simple console app for deploying an MS Access app. Recently, I started having a problem publishing the app to my webserver with the publisher feature of VS2005 when I do an...
0
2663
by: =?Utf-8?B?TWFuaQ==?= | last post by:
Hi All, Problem in deploying my WebService developed using Asp.net WebServices 2005. I have designed simple WebService using Asp.net Webservices 2.0 , The webservice look this , using System;...
5
1491
by: daokfella | last post by:
I'm still stuck on the .dll and bin folder mentality in 1.1. When deploying a 2.0 web application, there is no web .dll to deploy? So is this how we deploy in 2.0? 1. Copy the app_code folder...
3
1541
by: =?Utf-8?B?eWtmZmM=?= | last post by:
I try deploying a very simple (very simple indeed) Vb.net application by following the basic steps according to some tutorials. My pc runs Visual Studio 2005 and it reports "Build successful"...
0
7203
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7089
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7282
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6995
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5581
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5017
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3168
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1515
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
738
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.