Simple Q on deploying an app

  • Thread starter Thread starter Simon Harvey
  • Start date Start date
S

Simon Harvey

Hi everyone,

Apologies for the very silly question I am about to ask:

When I deploy an application, do I need to copy over the source code for the
aspx pages and their code behinds, as well as the dll's that are created
when compiling the site in Visual Studio?

Someone said something to me the other day which led me to believe that an
entire site consists only of the Dlls that are created when the site is
compiled. I'm not convinced.

Thanks to anyone who can clarify this for me!

Take care

Simon
 
Simon,

You do need the aspx pages, but you don't need their code-behind (.aspx.vb)
because that is what is placed into the .dll.

Visual Studio.Net has a great feature for getting just the files you need.
Make certain that your web project is selected in the solution explorer
(just click once on the project itself so it's highlighted at the top level)
then, in the menu, click "Project - Copy Project" (about midway down).

In the dialog that pops up make certain you select "Only files needed to run
this application" in the "Copy" section. (I also suggest using "File Share"
as the Web access method if you're on your local machine.)

If you do this, Visual Studio will create a copy of your original project
and the copy will include only the files necessary for your application to
run.

Another tip: To make your application run as quickly as possible alway set
debug = "false" in the web.config file and compile your application in
release mode.


---
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche
 
Back
Top