473,387 Members | 1,834 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 Headaches

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 issues, which I
imagine is pretty common.

What is the solution here? do I have to download everything, change the
code, then upload again? this just doesn't make any sense at all.

Also, why does Publish have to upload my site's 10MB ASPNET.MDF files,
plus my site's 5MB /img folder every time????

Publishing my site takes about 10 minutes every time. Isn't there a
better way?? (I cannot put the code files and edit them remotely due to
my host's restrictions with debugging).

Is the Web Deployment Project the way to go? from what I've seen, it
only works locally. Is the idea that I just take whatever I want from
that dir and copy it over? that is just way too tedious, picking and
choosing dirs and files every time.

Thanks,

Alex

Jan 29 '06 #1
9 2362
You dont say what version you are running on, the fact you are saying
'Publish' leads me to believe it's 2005 ?

--
Terry Burns
http://TrainingOn.net
"Alex Greenberg" <mi*********@gmail.com> wrote in message
news:11*********************@z14g2000cwz.googlegro ups.com...
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 issues, which I
imagine is pretty common.

What is the solution here? do I have to download everything, change the
code, then upload again? this just doesn't make any sense at all.

Also, why does Publish have to upload my site's 10MB ASPNET.MDF files,
plus my site's 5MB /img folder every time????

Publishing my site takes about 10 minutes every time. Isn't there a
better way?? (I cannot put the code files and edit them remotely due to
my host's restrictions with debugging).

Is the Web Deployment Project the way to go? from what I've seen, it
only works locally. Is the idea that I just take whatever I want from
that dir and copy it over? that is just way too tedious, picking and
choosing dirs and files every time.

Thanks,

Alex

Jan 29 '06 #2
Of course it's VS 2005. I would have complained a long time ago if
this was in VS 2003.

Jan 29 '06 #3
On 29 Jan 2006 03:29:15 -0800, "Alex Greenberg"
<mi*********@gmail.com> wrote:
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 issues, which I
imagine is pretty common.

What is the solution here? do I have to download everything, change the
code, then upload again? this just doesn't make any sense at all.

Also, why does Publish have to upload my site's 10MB ASPNET.MDF files,
plus my site's 5MB /img folder every time????

Publishing my site takes about 10 minutes every time. Isn't there a
better way?? (I cannot put the code files and edit them remotely due to
my host's restrictions with debugging).

Is the Web Deployment Project the way to go? from what I've seen, it
only works locally. Is the idea that I just take whatever I want from
that dir and copy it over? that is just way too tedious, picking and
choosing dirs and files every time.

Thanks,

Alex


Alex,

I think there is a setting you can use to only deploy changed objects,
but I might be wrong about that.

If you haven't changed everything in the sight, just FTP the items you
changed to the remote site. It's usually a lot faster doing it that
way. ASP.NET doesn't care if you just copy the changed items via FTP
as long as you're not using precompiled deployment.

I'm assuming you're using .NET 2.0, but it's about the same with
version 1.1. You just need to make sure you copy any changed DLLs
when working with .NET 1.1.
Otis Mukinfus
http://www.otismukinfus.com
http://www.tomchilders.com
Jan 29 '06 #4
Otis,

I thought ASP.net 2.0's Publish is equivalent to pre-compilation. In
other words. the site doesn't contain any code, and the aspx pages are
just pointers to the precompiled files in the /bin folder. In other
words, there's no easy way to update unless I re-publish.

Jan 30 '06 #5
On 29 Jan 2006 17:56:05 -0800, "Alex Greenberg"
<mi*********@gmail.com> wrote:
Otis,

I thought ASP.net 2.0's Publish is equivalent to pre-compilation. In
other words. the site doesn't contain any code, and the aspx pages are
just pointers to the precompiled files in the /bin folder. In other
words, there's no easy way to update unless I re-publish.

Alex,

I'm confused.

When you choose "Copy Web Site" from the "WebSite" menu in the VS 2005
IDE, do you not get a list of the files on the web site (the left hand
list) and in the working site (right hand list) after logging on to
the site? This list shows the status (changed, unchanged or new) of
the items in the list. All you have to do is select the items you
want to deploy and click the arrow pointing to the remote (deployment)
site. Doesn't that work for you?
Otis Mukinfus
http://www.otismukinfus.com
http://www.tomchilders.com
Jan 30 '06 #6
thats how i do it :

- create a web deployment project do 'publish' the site to a local file
based site,
- add the published site to your solution,
- use CopyTo to actual update the remote site from the published site

the web deployment project and publish do basically the same thing but the
deployment project lets you do a whole lot more - modify config files,
exclude things etc.

imo , the actual 'Publish' functionality is pretty close to useless as far
as publishing to remote web sites - and would more appropriately be called
"Compile".


"Otis Mukinfus" <ph***@emailaddress.com> wrote in message
news:jl********************************@4ax.com...
On 29 Jan 2006 17:56:05 -0800, "Alex Greenberg"
<mi*********@gmail.com> wrote:
Otis,

I thought ASP.net 2.0's Publish is equivalent to pre-compilation. In
other words. the site doesn't contain any code, and the aspx pages are
just pointers to the precompiled files in the /bin folder. In other
words, there's no easy way to update unless I re-publish.

Alex,

I'm confused.

When you choose "Copy Web Site" from the "WebSite" menu in the VS 2005
IDE, do you not get a list of the files on the web site (the left hand
list) and in the working site (right hand list) after logging on to
the site? This list shows the status (changed, unchanged or new) of
the items in the list. All you have to do is select the items you
want to deploy and click the arrow pointing to the remote (deployment)
site. Doesn't that work for you?
Otis Mukinfus
http://www.otismukinfus.com
http://www.tomchilders.com

Jan 30 '06 #7
Thanks Gerry,

I'll try that method, it makes a lot more sense than just plain
publish, and it's not as painful.

Regards,

Alex

Jan 30 '06 #8
Well I tried that, and after copying the files in my bin dir, the site
failed to open...

What kind of pre-compilation options are you using? Fixed names?
Updatable?

Thanks,

Alex

Jan 31 '06 #9
No Fixed Names
No Strong Names
Merge into single assembly
Treat as Library
Remove App_Data folder

besides the bin directory you also need your web.config at a minimnum
depending on your IIS settings you may also need your aspx stubs

what do you mean exactly by "failed to open" ?
what type of error are you getting ?

"Alex Greenberg" <mi*********@gmail.com> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
Well I tried that, and after copying the files in my bin dir, the site
failed to open...

What kind of pre-compilation options are you using? Fixed names?
Updatable?

Thanks,

Alex

Jan 31 '06 #10

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...
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...
10
by: WT | last post by:
Hello, I have been publishing my web site many times to the remote where resides my final web site. Everything was ok, but to-day, without any configuration change, vs doesn't copy final files...
3
by: Stan | last post by:
What exactly is required in order to use Publish Web Site dialog in VS.NET 2005? Permissions, Front Page extenstion, etc? I keep getting different erros all the time - login boxes, server...
4
by: Tom | last post by:
Ok, my 2005 asp.ne 2.0 web site is ready to publish to my test server. When I did publish web site it copied it over but I couldn't access the site on the test server, I got an Runtime Error. So...
3
by: Tom | last post by:
I did a Build --Publish web site last night on my web app, It publish correctly but it created 12 DLL's for it. Is there a way to only get 1 dll for the entire web project like in 03 or a is there...
2
by: genc_ymeri | last post by:
Hi over there, I suddenly started to get the below error when I try to publish my websites, in any of them ! I tried to google it but not much info. Any help very much appreciated, thanks...
3
by: jfarrell | last post by:
Hi there, Im attempting to publish my site to local then copy files to the web server. The only option there seems to be in VWDE is to build/copy the site...where is the Publish website option...
9
by: Jason | last post by:
Hi all, I am no longer able to publish a web site project using Visual Studio 2005 Professional. I am publishing it to an FTP url, and this used to work just fine. I enter the username and...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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:
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...
0
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,...
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.