For Programmers: Free Programming Magazines  


Home > Archive > ASP .NET > February 2005 > Do I Really Need to Copy All This?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Do I Really Need to Copy All This?
Wayne Wengert

2005-02-24, 8:59 pm

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


Jc Morin

2005-02-25, 3:59 am

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.


--------------------------
Jean-Claude Morin, MCP
Software Developer
2k1Soft/kCentric, Canada


"Wayne Wengert" <wayneDONTWANTSPAM@wengert.com> wrote in message
news:e5PkD%23sGFHA.2588@TK2MSFTNGP09.phx.gbl...
> 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
>
>



Alfred E. Newman

2005-02-25, 3:59 am

<<.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




"Jc Morin" <microsoftnewsgroup@jcmorin.net> wrote in message
news:%23uN8mytGFHA.3068@tk2msftngp13.phx.gbl...
> 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.
>
>
> --------------------------
> Jean-Claude Morin, MCP
> Software Developer
> 2k1Soft/kCentric, Canada
>
>
> "Wayne Wengert" <wayneDONTWANTSPAM@wengert.com> wrote in message
> news:e5PkD%23sGFHA.2588@TK2MSFTNGP09.phx.gbl...
> lot
>
>



Jc Morin

2005-02-25, 3:59 am

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. :)


--------------------------
Jean-Claude Morin, MCP
Software Developer
2k1Soft/kCentric, Canada


"Alfred E. Newman" <MrNewman@WhatMeWorry.com> wrote in message
news:OVRyzPuGFHA.3068@tk2msftngp13.phx.gbl...
> <<.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
>
>
>
>
> "Jc Morin" <microsoftnewsgroup@jcmorin.net> wrote in message
> news:%23uN8mytGFHA.3068@tk2msftngp13.phx.gbl...
a[color=darkred]
>
>



Paul Hatcher

2005-02-25, 4:01 pm

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

"Wayne Wengert" <wayneDONTWANTSPAM@wengert.com> wrote in message
news:e5PkD#sGFHA.2588@TK2MSFTNGP09.phx.gbl...
> 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
>
>



Kevin Spencer

2005-02-25, 4:01 pm

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.

"Wayne Wengert" <wayneDONTWANTSPAM@wengert.com> wrote in message
news:e5PkD%23sGFHA.2588@TK2MSFTNGP09.phx.gbl...
>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
>
>



Wayne Wengert

2005-02-25, 4:01 pm

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

Wayne

"Kevin Spencer" <kevin@DIESPAMMERSDIEtakempis.com> wrote in message
news:%23eQvOj0GFHA.2412@TK2MSFTNGP14.phx.gbl...
> 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.
>
> "Wayne Wengert" <wayneDONTWANTSPAM@wengert.com> wrote in message
> news:e5PkD%23sGFHA.2588@TK2MSFTNGP09.phx.gbl...
one[color=darkred]
directories[color=darkred]
>
>



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2010 codecomments.com