Do I Really Need to Copy All This?

W

Wayne Wengert

I am using VSNET 2003 to build an ASP.NET/VB set of pages. There are
currently about a dozen aspx pages. When I make even a minor change to one
page I currently rebuild the solution, copy the project files to a copy
directory on my local wwwroot and then FTP all those files and directories
to my ISP account to be able to see the change on my web site. This is a lot
of data to FTP every time (the bin directory alone is close to 4MB)

Is there a better way?

Wayne
 
J

Jc Morin

You do not need to copy:
- .vb or .cs files (source code)
- .resx (ressource files since they are compile into the bin directory)
- .suo, sln, .vbproj, .csproj .... all projects, visual studio related files
- Inside the bin directory .pdb (those files contain only debug information)
only dll are required.

However don't forget to copy:
- Web.Config
- Global.asax
and the bin directory.
 
A

Alfred E. Newman

<<.pdb (those files contain only debug information)>>

You should, in fact, copy the .pdb file to production IF/WHEN you have
exception handlers that make user of the stack trace (e.g., to log the exact
line of code that choked, thereby throwing the exception). If you are doing
this (I can't imagine why anyone wouldn't want this information in a
produciton system), then you will need to copy BOTH the .pdb and .dll file
whenever you recompile - as the .pdb version is logically tied to the .dll
version.

HTH
 
J

Jc Morin

I agree with you Alfred, but the first question about data size, so I think
that it's important to point out that pdb files are not *required*.

Any good tracing library that show line number, full stack trace and various
stuff required those files to work property...
This is a lot of data to FTP every time

Yep, you can still cut on those pdb files if data transfer is an issue. :)
 
P

Paul Hatcher

If you are only modifying the HTML, then you can just copy the relevant aspx
page(s), i.e. no changes to the code behind. Conversely, if you are just
modifying the functionality, just copy the bin directory and not the aspx
pages

Paul
 
K

Kevin Spencer

Hi Wayne,

If you make a change to the programming code in a DLL, you need to copy over
the DLL. If you make a change to a template (aspx or ascx) that doesn't
affect the CodeBehind DLL, just copy over the template.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.
 
W

Wayne Wengert

Thanks for the responses. Good to know I can separate the html from the
dll's

Wayne
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top