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

ASP.NET 2.0 Compilation Model - I don't get it?

Hi all,

From what I read, VS.NET 2005 doesn't precompile web applications into a
DLL for deployment, rather you need to manually precompile before release.

However, I have a web application in my project and it is compiling like in
..NET 1.1 - it is generating a set of deployment DLLs.

Does anyone know why it is doing that? Does VS.NET 2005 still support both
deployment models?
Apr 23 '07 #1
8 1595
Spam Catcher <sp**********@rogers.comwrote in
news:Xn**********************************@127.0.0. 1:
Hi all,

From what I read, VS.NET 2005 doesn't precompile web applications into
a DLL for deployment, rather you need to manually precompile before
release.

However, I have a web application in my project and it is compiling
like in .NET 1.1 - it is generating a set of deployment DLLs.

Does anyone know why it is doing that? Does VS.NET 2005 still support
both deployment models?

Looks like I had SP1 installed, that's why my app was setup as a web
application project.
In anycase, what's everyone view of the new model vs. 2003 model?

Personally I prefer the 2003 model ... seems easier to deploy (no need to
precompile THEN deploy).

Any comments/views?
Apr 23 '07 #2
asp.net has its own compiler. just like version 1, a dll is created per
page (actually batching may cause more than 1 page per dll). the
difference is how the code behind classes are done. in vs2003 or vs2005
application model, the code behind file are compiled into one dll. in
vs2005 web site mode, the code behind code is included in the page dll.
take a simple site with 2 web pages.

page1.aspx -page1.aspx.cs
page2.apsx -page2.apsx.cs
for example with a vs2003 and vs2005 application you end up with 2 page
dlls built by the asp.net compiler and one code behind dll

page1.aspx.dll (name will depend on compilation model)
page2.aspx.dll (ditto)
project.dll (named by vs project)

in a vs2005 web site, only the first 2 dll's are built.

in vs2003/asp.net 1.0 the page dll's are built in a temp dir when the
web site is first accessed.

vs2005/asp.net support precompiling the page dll's into a deploy folder.
there are a couple modes depending on how you want to deploy updates.
you can fix the names, so that pages can be changed and deployed
individually (difficult with application mode), or whether the site is
redeployed in whole.
-- bruce (sqlwork.com)

Spam Catcher wrote:
Hi all,

From what I read, VS.NET 2005 doesn't precompile web applications into a
DLL for deployment, rather you need to manually precompile before release.

However, I have a web application in my project and it is compiling like in
.NET 1.1 - it is generating a set of deployment DLLs.

Does anyone know why it is doing that? Does VS.NET 2005 still support both
deployment models?
Apr 23 '07 #3
Did you install Web Application Projects, Web Deployment Projects or VS 2005 SP1 ?

They all support what you are seeing.


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Spam Catcher" <sp**********@rogers.comwrote in message
news:Xn**********************************@127.0.0. 1...
Hi all,

From what I read, VS.NET 2005 doesn't precompile web applications into a
DLL for deployment, rather you need to manually precompile before release.

However, I have a web application in my project and it is compiling like in
.NET 1.1 - it is generating a set of deployment DLLs.

Does anyone know why it is doing that? Does VS.NET 2005 still support both
deployment models?

Apr 23 '07 #4
"Spam Catcher" <sp**********@rogers.comwrote in message
news:Xn**********************************@127.0.0. 1...
In anycase, what's everyone view of the new model vs. 2003 model?

Personally I prefer the 2003 model ... seems easier to deploy (no need to
precompile THEN deploy).
If you're talking about the website model versus the web application model,
opinion is divided - personally, I cannot abide the website model and would
never contemplate using it even for the simplest of websites... However,
that's just my view, which is what you asked for...

When VS.NET 2005 was first released, only the website model existed. There
was such an outcry from the ASP.NET developer community that Microsoft were
forced to rush out the Web Application Projects add-on - so that might tell
you something... :-)

However, some people love the website model...
Apr 23 '07 #5
"Juan T. Llibre" <no***********@nowhere.comwrote in
news:Om**************@TK2MSFTNGP04.phx.gbl:
Did you install Web Application Projects, Web Deployment Projects or
VS 2005 SP1 ?

They all support what you are seeing.
Ya, that turned out to be the case - it was SP1. I didn't realize SP1
included the web application project deployment model.

For some reason I'm more comfortable with the web app project model. I
distribute my app to several customers and it seems easier to deploy (less
DLLs, etc).

Would be nice if the ASPXs could be compiled right into the app as well :-)
Apr 23 '07 #6
"Mark Rae" <ma**@markNOSPAMrae.netwrote in
news:Og**************@TK2MSFTNGP04.phx.gbl:
When VS.NET 2005 was first released, only the website model existed.
There was such an outcry from the ASP.NET developer community that
Microsoft were forced to rush out the Web Application Projects add-on
- so that might tell you something... :-)
That's what I thought ...

The web site model looks great if you have complete control over the
server, but if you're going to be deploying the app to multiple customer
sites + making frequent changes to the code base, the classic web app
project model seems more suited.

Is there a way to compile the ASPX right into the DLL in 2005? :-)
Apr 23 '07 #7
"Spam Catcher" <sp**********@rogers.comwrote in message
news:Xn**********************************@127.0.0. 1...
The web site model looks great if you have complete control over the
server, but if you're going to be deploying the app to multiple customer
sites + making frequent changes to the code base, the classic web app
project model seems more suited.
In that case, you should definitely investigate Web Deployment Projects...
Apr 23 '07 #8
"Mark Rae" <ma**@markNOSPAMrae.netwrote in
news:uf**************@TK2MSFTNGP05.phx.gbl:
"Spam Catcher" <sp**********@rogers.comwrote in message
news:Xn**********************************@127.0.0. 1...
>The web site model looks great if you have complete control over the
server, but if you're going to be deploying the app to multiple
customer sites + making frequent changes to the code base, the
classic web app project model seems more suited.

In that case, you should definitely investigate Web Deployment
Projects...
Thanks for the tip :-)
Apr 24 '07 #9

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

Similar topics

3
by: Tiraman | last post by:
Hi, Can some one explain me why do i need to compile a web application or in other words , what is the deference between 2 web sites (same files) but one of them was compiled and the other...
2
by: Michael | last post by:
Hi, Is there any document with diagrams that illustrate ASP.NET 2.0 compilation and execution model? Thanks!
1
by: Anders Borum | last post by:
Hello! I was wondering if I am the only person missing the option of outputting a single dll for a website (just like the good old v1.1 compilation model)? What I'm looking for is the ASP.NET...
4
by: Marcelo | last post by:
Hi everybody, This is my first time with the template class and I have an strange problem. I have spent all the afternoon trying to understand it, but I don't get the problem... I have three...
2
by: bluekite2000 | last post by:
I have a bunch of template functions in foo.h and foo.cc using the inclusion compilation model. Now when I write the make file must I write it so that foo.h and foo.cc are both installed in the...
2
by: tkirankumar | last post by:
Hi all, uname -a SunOS cbmrsd1a1 5.10 Generic_118833-17 sun4us sparc FJSV,GPUZC-M g++ -v Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.10/3.3.2/specs Configured with:...
2
by: A_StClaire_ | last post by:
another question. this one more just a curiosity. why does Visual Studio 2005 "support" manual compilation of source code files only through the inconvenient command line? I see and understand...
35
by: mwelsh1118 | last post by:
Why doesn't C# allow incremental compilation like Java? Specifically, in Java I can compile single .java files in isolation. The resulting individual .class files can be grouped into .jar files....
1
by: Alex Vinokur | last post by:
Hi, I have compilation problem on SUN CC compiler with template while using option -m64 (64-bit addressing model). No problem while using option -m32 (32-bit addressing model) $ CC -V CC:...
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: 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
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...
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
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.