473,320 Members | 2,080 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,320 software developers and data experts.

VS 2005 Web Site Project vs Web Application Project

I was developing a large web site in VS 2005 as a web site project. I
was having problems with the VS 2005 publish tool. It was slow, and
provided no feedback. It has other issues as outlined below.

Here is my solution. I converted the application from a Web Site
Project (WSP) to a Web Application Project (WAP). Go to http://webproject.scottgu.com/
and read about the Web Application Project in VS 2005.

Why?

1. When publishing the application as a WSP, the entire site gets
deleted. That means that the images that are uploaded to the site have
to be downloaded first, and integrated into the project, before it can
be published. Forget to do this, and people might not see their newer
images.
2. Because the images were part of the project, they were getting
stored in SourceSafe with the project, which write-protected the
files. So if you publish the images, and they are write-protected, the
user won't be able to overwrite them with a new image. One has to
remember to checkout the images before publishing the web site.
3. No way exists in VS 2005 Web Site Projects to exclude a folder from
the build and publish commands. You can exclude individual files, but
this is not an acceptable solution when you have hundreds or thousands
of images.
4. The VS 2005 Web Site Project publish command provides no feedback
on the progress of the process in the output window. You can sit there
for an hour, and wonder what's happening until it's finished.

The Web Application Project has the following benefits.

1. When you publish a site, you can specify whether or not you want to
delete the entire site. So you don't have to worry about downloading
the users' images before you publish anymore.
2. You can exclude the image folders from the build and publish
commands. So the images in those folders don't get stored in
SourceSafe, and they don't get write-protected.
3. Lots of feedback is displayed in the output panel during the
publish procedure.
4. The entire application gets compiled the first time you run it. So
subsequent visits are faster. But that first compilation has a long
delay. So you have to make sure you keep the application in memory. I
have been running a periodic process that does that every 15 minutes.
So
after I publish the site, the periodic process will compile the
application on all the servers in the web farm.
5. It will be much easier to maintain the site now.

The only negative is the long, long compile time the first time it
runs. But that was a problem with VS 2003 projects. This was one of
the benefits of VS 2005 WSP projects. VS 2005 WSPs perform partial
compilations at runtime, where only the pages that are accessed get
compiled. But I should be able to keep the WAP compiled by running the
periodic procedure that launches the site every 15 minutes.
Jan 28 '08 #1
0 2537

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

Similar topics

16
by: Kent | last post by:
We have created several Assemblies that we add to the GAC on our web servers. In an ASP.NET app in VS2003, Adding a reference to strong named GAC'd Assembly meant that the web app would use...
2
by: TobyRiley | last post by:
I was reading the post from Scott Guthrie’s site http://weblogs.asp.net/scottgu/archive/2005/08/23/423409.aspx regarding sub webs and I have a question. When I originally set up ASP.NET to use a...
8
by: jdn | last post by:
I have a root application that has various sub-applications (subdirectories set up as applications within IIS). All of the sub-applications rely on the root application for profiles, membership,...
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...
12
by: Nathan Sokalski | last post by:
I recently upgraded to from Visual Studio .NET 2003 to Visual Studio .NET 2005. In Visual Studio .NET 2003 when I would select 'Build' it would add a *.dll with the name of the Project to a /bin/...
9
by: larrybud2002 | last post by:
I've read about this error in this group and others from early 2006 but without any resolution, so I thought I'd bump it up to see if there's a solution. Trying to build a website on ...
3
by: =?Utf-8?B?RnJlZCBCcnVuZXQ=?= | last post by:
Have a web site project with only a few pages. The site is in a solution that has about 20 projects that are business objects that the site is dependent on. When I do a build the compiler says...
3
by: moondaddy | last post by:
What's the preferred (best) way to start a website project in VS 2005? I know of 2 ways and each creates a site differently and has different behavior. Open VS 2005 1) from the start page...
3
by: =?Utf-8?B?YzY3NjIyOA==?= | last post by:
Hi all, I must be out of my mind. I used visual studio .net 2003 before and I installed 2005 a while back, but seldom to use it. Recently I was required to start to learn C# asp.net. So I tried...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.