473,797 Members | 3,199 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1700
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****@pokerca t.co.ukwrote in message
news:u4******** ******@TK2MSFTN GP03.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********@hot mail.comwrote in message
news:D4******** *************** ***********@mic rosoft.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****@pokerca t.co.ukwrote in message
news:u4******** ******@TK2MSFTN GP03.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********@hot mail.comwrote in message
news:D4******** *************** ***********@mic rosoft.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 ExcludeFromBuil d
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
3167
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 development on existing and new applications. This environment also has its own Sql Server with dev versions of all our live Databases. Our live production server also its own Sql Server, these 2 Sql Servers are kept completely separate (for obvious...
5
2587
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 solution: 1) web service website. 2) SOAP Extension Class Lib that compiles to a dll 3) WinForm application with a proxy to test the web service.
6
3835
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 assembly 'App_Web_vxfyglsm'. Make sure that it is compiled before accessing the page". I checked - The assembly DOES exist in the target web folder.
1
1391
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 ASPNETDB.MDF is over 10MB) Any ideas how I can speed up the process, or better yet, JUST copy over certain files (ie the things that have changed?) Thanks!
9
2381
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 impractical, what if my users generate these documents or images through their interaction with the site, and then I change some code and publish it, boom, everything is gone. I cannot put these folders outside the solution due to security/pathing...
20
4289
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 is structured as an upside-down tree, and (if I remember correctly) never more than 4 levels. The site basically grew (like the creeping black blob) ... all the pages were created in Notepad over the last
3
1806
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
3703
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 and reinstate it after publishing the new content. does anyone have any suggestions for the most effective way to automate this? TIA MC
5
2963
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 source code (in ..vb files). I would prefer easy update of the site (code or aspx.) Thanks.
0
9537
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10469
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10209
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10023
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7560
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6803
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5582
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4135
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 we have to send another system
2
3750
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.