473,387 Members | 1,592 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,387 software developers and data experts.

Publish web site overwriting all files all the time

HI

When i publish my site, it overwrites all files. but when i have some large
files included such as mp3s. It overwrites these and even tho i havent
touched them it reuploads all of them. Anyway i can set it to not do this
for specific files?

Thanks
Apr 5 '07 #1
3 1685
Anyway i can set it to not do this
for specific files?'
No unfortunately not. The publish feature basically writes out a new copy of
the entire Web site and then pushes the whole thing up to the server. It's
ugly to say the least especially with stock projects. There's really no good
workaround for this because the ASP.NET compiler wipes the timestamps from
the files so there's no way to even manually diff the files based on dates.
You can manually do it via FTP off the output files.

There are some ways that can make this easier. One is Web Deployment
projects which can basically compile your entire code of the site into a
single assembly making update deployment a bit easier. Or you can use Web
Application Projects (part of SP1 of Visual Studio) which does codebehind
compilation. But neither of these solutions really offer you a dynamic
publish feature - you still have to manually manage updates or suffer
through uploading the same files even if they haven't changed.

I wrote an article on this topic some time ago that explains how all this
works and shows a few of the differences, but be forewarned it's not a quick
read <s>...

http://www.west-wind.com/presentatio...ompilation.asp
Hope this helps,

+++ Rick ---
--

Rick Strahl
West Wind Technologies
www.west-wind.com/weblog
"PokerMan" <no****@pokercat.co.ukwrote in message
news:u4**************@TK2MSFTNGP03.phx.gbl...
HI

When i publish my site, it overwrites all files. but when i have some
large files included such as mp3s. It overwrites these and even tho i
havent touched them it reuploads all of them. Anyway i can set it to not
do this for specific files?

Thanks
Apr 6 '07 #2
Thanks Rick.

"Rick Strahl [MVP]" <ri********@hotmail.comwrote in message
news:D4**********************************@microsof t.com...
>
>Anyway i can set it to not do this
for specific files?'

No unfortunately not. The publish feature basically writes out a new copy
of the entire Web site and then pushes the whole thing up to the server.
It's ugly to say the least especially with stock projects. There's really
no good workaround for this because the ASP.NET compiler wipes the
timestamps from the files so there's no way to even manually diff the
files based on dates. You can manually do it via FTP off the output files.

There are some ways that can make this easier. One is Web Deployment
projects which can basically compile your entire code of the site into a
single assembly making update deployment a bit easier. Or you can use Web
Application Projects (part of SP1 of Visual Studio) which does codebehind
compilation. But neither of these solutions really offer you a dynamic
publish feature - you still have to manually manage updates or suffer
through uploading the same files even if they haven't changed.

I wrote an article on this topic some time ago that explains how all this
works and shows a few of the differences, but be forewarned it's not a
quick read <s>...

http://www.west-wind.com/presentatio...ompilation.asp
Hope this helps,

+++ Rick ---
--

Rick Strahl
West Wind Technologies
www.west-wind.com/weblog
"PokerMan" <no****@pokercat.co.ukwrote in message
news:u4**************@TK2MSFTNGP03.phx.gbl...
>HI

When i publish my site, it overwrites all files. but when i have some
large files included such as mp3s. It overwrites these and even tho i
havent touched them it reuploads all of them. Anyway i can set it to not
do this for specific files?

Thanks

Apr 9 '07 #3
"Rick Strahl [MVP]" <ri********@hotmail.comwrote in message
news:D4**********************************@microsof t.com...
One is Web Deployment projects But neither of these solutions really offer
you a dynamic publish feature
WDP allows you to exclude files and/or folders by using the ExcludeFromBuild
tag - I do this all the time...
Apr 9 '07 #4

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

Similar topics

8
by: Graham | last post by:
I noticed a similar post awhile ago and in terms of my problem it wasnt a suitable answer so I will ask again. I have VS2005 running a on development machine in my office where I do all my...
5
by: NoNickname | last post by:
Basically, how do I know that the release versions of all components are being published? The Build | Configuration Manager is confusing me a little in VS2005. I have three projects in my...
6
by: ewolfman | last post by:
Hi, I've read many posts in several news groups, but can't figure out how to publish my website. The specific error I'm getting (on the "successfully published website") is "Could not load the...
1
by: VB Programmer | last post by:
My ASP.NET 2.0 site takes about 10 min to publish to my webserver. There's only 3 ASPX pages, VERY MINIMAL code (< 100 lines) and I'm not using any membership stuff etc... (even though the...
9
by: Alex Greenberg | last post by:
I don't know, but I find the Publish Web Site feature very lacking and weak. I mean, why does the damn thing have to delete unrelated directories like /images /documents etc. This is so...
20
by: mike | last post by:
I help manage a large web site, one that has over 600 html pages... It's a reference site for ham radio folks and as an example, one page indexes over 1.8 gb of on-line PDF documents. The site...
3
by: Stan B | last post by:
Publish Web Site in VS.NET 2005 helps but I don't want it to copy web.config to from development to staging. It doesn't seem be a way around it, or maybe I'm missing something?
6
by: mc | last post by:
I've developed a website with which users can update XML files in it's App_Data directory. Currently when I want to update the live site I have to take a copy of the app_Data directory on the server...
5
by: Cirene | last post by:
When would I use "Copy Web site" over "Publish Website" or visa versa? Why would I use the Web Deployment Project vs these options? I want to make sure no one can pull up/read/download my vb...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.