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

difference between Web-Site and Web-Application-Project

Hi,

I am trying to find out what is the difference between Web-Site and
Web-Application-Project in Visual Studio 2005 ?

People – what do you recommend ?

Thanks

Avi
Mar 7 '07 #1
4 20383
The Web Site project is compiled on the fly. You end up with a lot more DLL
files, which can be a pain. It also gives problems when you have pages or
controls in one directory that need to reference pages and controls in
another directory since the other directory may not be compiled into code
yet. Another problem can be in publishing. If VS isn't told to re-use the
same names constantly, it will come up with new names for the dll files
generated by pages all the time. That can lead to having several close
copies of dlls containing the same class name, which will generate plenty of
errors. The Web Site project was introduced with VS 2005, but has turned out
not to be extremely popular.

The Web Application Project was created as an add-in and now exists as part
of SP 1 for VS 2005. The main differences are the Web Application Project
was designed to work similar to the Web projects that shipped with VS.net
and VS 2003. It will compile the application into a single dll at build
time. In order to update the project it must be recompiled and the dll
published for changes to occur. Another nice feature of the Web Application
project is it's much easer to exclude files from the project view. In the
Web Site project, each file that you exclude is renamed with an exclude
keyword in the filename. In the Web Application Project, the project just
keeps track of which files to include/exclude from the project view without
renaming them, making things much tider.
--

Hope this helps,
Mark Fitzpatrick
Former Microsoft FrontPage MVP 199?-2006

"Hafner Avi" <ha****@technion.ac.ilwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
Hi,

I am trying to find out what is the difference between Web-Site and
Web-Application-Project in Visual Studio 2005 ?

People - what do you recommend ?

Thanks

Avi


Mar 7 '07 #2
I will add, and adjust, some of what Mark has stated.

The web site template is included with VS 2005. There are two compilation
methods, depending on how you do things:

1. Compile on the fly - default if you simply copy the bits to a server.
Each page is compiled into its own assembly
2. Compile ahead - You still have quite a few DLLs, but directories can be
compiled together

The web applications template is downloaded from www.asp.net. It compiles
into a single DLL like ASP.NET 1.x.

If you want to be able to change a single page, the web site template is
better if you use compile on the fly. The precompile option does not help
much.

I am less concerned than Mark about the multiple DLLs, as the publish option
will package everything necessary in a folder of your choosing. I do find
the .exclude to be a royal pain, however.

For me, I would use the web applications template, as it is cleaner and has
nice options not available in the web site template. The exception is if you
are going to update single files (and keep full source on the site), which I
would not recommend in most situations.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*********************************************
Think outside the box!
*********************************************
"Hafner Avi" <ha****@technion.ac.ilwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
Hi,

I am trying to find out what is the difference between Web-Site and
Web-Application-Project in Visual Studio 2005 ?

People - what do you recommend ?

Thanks

Avi

Mar 7 '07 #3
Mark:

I just reinstalled and do not see the web applications template in the mix.
I was going to download it for my work. If someone does a fresh install, is
there a trick? :-)

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*********************************************
Think outside the box!
*********************************************
"Mark Fitzpatrick" <ma******@fitzme.comwrote in message
news:eo*************@TK2MSFTNGP06.phx.gbl...
The Web Site project is compiled on the fly. You end up with a lot more
DLL files, which can be a pain. It also gives problems when you have pages
or controls in one directory that need to reference pages and controls in
another directory since the other directory may not be compiled into code
yet. Another problem can be in publishing. If VS isn't told to re-use the
same names constantly, it will come up with new names for the dll files
generated by pages all the time. That can lead to having several close
copies of dlls containing the same class name, which will generate plenty
of errors. The Web Site project was introduced with VS 2005, but has
turned out not to be extremely popular.

The Web Application Project was created as an add-in and now exists as
part of SP 1 for VS 2005. The main differences are the Web Application
Project was designed to work similar to the Web projects that shipped with
VS.net and VS 2003. It will compile the application into a single dll at
build time. In order to update the project it must be recompiled and the
dll published for changes to occur. Another nice feature of the Web
Application project is it's much easer to exclude files from the project
view. In the Web Site project, each file that you exclude is renamed with
an exclude keyword in the filename. In the Web Application Project, the
project just keeps track of which files to include/exclude from the
project view without renaming them, making things much tider.
--

Hope this helps,
Mark Fitzpatrick
Former Microsoft FrontPage MVP 199?-2006

"Hafner Avi" <ha****@technion.ac.ilwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
>Hi,

I am trying to find out what is the difference between Web-Site and
Web-Application-Project in Visual Studio 2005 ?

People - what do you recommend ?

Thanks

Avi


Mar 7 '07 #4
Gregory,
Did you install SP1 yet? The pre-sp1 add-in is still available at:
http://msdn2.microsoft.com/en-us/asp.net/aa336618.aspx Note: before you
install it you'll need this update for VS
http://www.microsoft.com/downloads/d...displaylang=en
--

Hope this helps,
Mark Fitzpatrick
Former Microsoft FrontPage MVP 199?-2006
"Cowboy (Gregory A. Beamer)" <No************@comcast.netNoSpamMwrote in
message news:%2****************@TK2MSFTNGP04.phx.gbl...
Mark:

I just reinstalled and do not see the web applications template in the
mix. I was going to download it for my work. If someone does a fresh
install, is there a trick? :-)

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*********************************************
Think outside the box!
*********************************************
"Mark Fitzpatrick" <ma******@fitzme.comwrote in message
news:eo*************@TK2MSFTNGP06.phx.gbl...
>The Web Site project is compiled on the fly. You end up with a lot more
DLL files, which can be a pain. It also gives problems when you have
pages or controls in one directory that need to reference pages and
controls in another directory since the other directory may not be
compiled into code yet. Another problem can be in publishing. If VS isn't
told to re-use the same names constantly, it will come up with new names
for the dll files generated by pages all the time. That can lead to
having several close copies of dlls containing the same class name, which
will generate plenty of errors. The Web Site project was introduced with
VS 2005, but has turned out not to be extremely popular.

The Web Application Project was created as an add-in and now exists as
part of SP 1 for VS 2005. The main differences are the Web Application
Project was designed to work similar to the Web projects that shipped
with VS.net and VS 2003. It will compile the application into a single
dll at build time. In order to update the project it must be recompiled
and the dll published for changes to occur. Another nice feature of the
Web Application project is it's much easer to exclude files from the
project view. In the Web Site project, each file that you exclude is
renamed with an exclude keyword in the filename. In the Web Application
Project, the project just keeps track of which files to include/exclude
from the project view without renaming them, making things much tider.
--

Hope this helps,
Mark Fitzpatrick
Former Microsoft FrontPage MVP 199?-2006

"Hafner Avi" <ha****@technion.ac.ilwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
>>Hi,

I am trying to find out what is the difference between Web-Site and
Web-Application-Project in Visual Studio 2005 ?

People - what do you recommend ?

Thanks

Avi



Mar 7 '07 #5

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

Similar topics

34
by: yensao | last post by:
Hi, I have a hard time to understand difference and similarities between Relational database model and the Object-Oriented model. Can somebody help me with this? Thank you in advance. ...
21
by: b83503104 | last post by:
Hi, Can someone tell me the difference between single quote and double quote? Thanks
26
by: Frank | last post by:
For my website i would like to display the age of my son in years, months, days and hours. For now i manage to get a result for totals. Like the total number of days. This is the beginning: ...
21
by: Rich | last post by:
I was considering C# for developing a scientific application, but I have noticed a ~30% difference between VC++ .NET and C# on the same machine, under identical conditions: double a = 0,b = 0, c...
4
by: jamesyreid | last post by:
Hi, I'm really sorry to post this as I know it must have been asked countless times before, but I can't find an answer anywhere. Does anyone have a snippet of JavaScript code I could borrow...
3
by: bbawa1 | last post by:
Hi, I have a table which has a field ItemsReceived of type datetime. I have a grid view which has two columns. In first column i have to show the data from field ItemsReceived and in second...
12
by: Petronius | last post by:
Hallo, does anyone have an idea how to implement difference lists in Javascript? Thanks allot in advance
5
by: Julius | last post by:
Hej dudes, I need to calc the difference between two timestamps / dates ... For example what i need to calculate: Date 1: 2007.11.06 - 20:13:04 Date 2: 2007.11.07 - 21:13:04 Difference:...
9
by: viki1967 | last post by:
Hi all! This new forum its great! :) Congratulations !!! My answer: why this my code not working? Nothing error but not work the difference.... : <html>
11
by: cmb3587 | last post by:
I have two arrays and I'm trying to create a 3rd array that is the difference between the two arrays Ex: arrayA: 3 5 8 9 arrayB: 3 4 6 9 difference of A-B: 5 8 however, my...
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: 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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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...
0
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...

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.