473,395 Members | 1,488 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,395 software developers and data experts.

ASP.NET Web Application And Compilation [Question]

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 wasn't ?
10x

Best Regards ,

Tiraman :-)
Nov 18 '05 #1
3 1148
If I'm not mistaken, compiling a Web app prior to deploying means that you
only have to deploy the dll files. Everything needed for the app is
included.

If you don't compile the web app prior to deployment, then you need to
ensure that the code files are deployed on the web server so the app can be
compiled when needed.

--
Gerry O'Brien
Visual Developer .NET MVP
Visual Basic
"Tiraman" <ti*****@netvision.net.il> wrote in message
news:e0**************@TK2MSFTNGP12.phx.gbl...
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 wasn't ?
10x

Best Regards ,

Tiraman :-)

Nov 18 '05 #2
Hi Tiraman,

As for the complie for the asp.net web project(web application), here are
some of my understanding:

In fact, when we said that we need to compile a web application, that means
we'd compile the web project before deploy it to the server,yes? This
compile operation will build all the webform pages' codebehind page classes
or any other utility classes into the web application's main assembly(dll
file) which will be deployed to the web application's sub "bin" folder.
Then, when deploying the web project, we needn't copy the code source
files(.cs or .vb) to the deployment server) since all the classes has been
build into the main assembly(in "bin" folder).

At runtime, when a certain web page is requested, there occurs another
compilation------runtime compiling-------- this will generate the actual
class of the webpage(not the codebehind class in the assembly), the actual
class will be generated from the aspx source file and is derived from the
codebehind class contained in the assembly. And the runtime compiled page
classes is located in the ASP.NET's temporary folder. This runtime
compiliation can be set in the web.config via the <compilation> Element,

#<compilation> Element
http://msdn.microsoft.com/library/en...pilationsectio
n.asp?frame=true

Then when the actual page class is generated, the ASP.NET runtiem will use
its instance to process the coming request for the certain page. For
detailed description, please reference the following links in MSDN:

#Creating and Managing Web Forms Pages
http://msdn.microsoft.com/library/en...ngEditingWebFo
rms.asp?frame=true

#Web Forms Code Model
http://msdn.microsoft.com/library/en...mscodemodel.as
p?frame=true

Hope helps. Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx


Nov 18 '05 #3
10x :-)

"Steven Cheng[MSFT]" <v-******@online.microsoft.com> wrote in message
news:dF**************@cpmsftngxa10.phx.gbl...
Hi Tiraman,

As for the complie for the asp.net web project(web application), here are
some of my understanding:

In fact, when we said that we need to compile a web application, that means we'd compile the web project before deploy it to the server,yes? This
compile operation will build all the webform pages' codebehind page classes or any other utility classes into the web application's main assembly(dll
file) which will be deployed to the web application's sub "bin" folder.
Then, when deploying the web project, we needn't copy the code source
files(.cs or .vb) to the deployment server) since all the classes has been
build into the main assembly(in "bin" folder).

At runtime, when a certain web page is requested, there occurs another
compilation------runtime compiling-------- this will generate the actual
class of the webpage(not the codebehind class in the assembly), the actual
class will be generated from the aspx source file and is derived from the
codebehind class contained in the assembly. And the runtime compiled page
classes is located in the ASP.NET's temporary folder. This runtime
compiliation can be set in the web.config via the <compilation> Element,

#<compilation> Element
http://msdn.microsoft.com/library/en...pilationsectio n.asp?frame=true

Then when the actual page class is generated, the ASP.NET runtiem will use
its instance to process the coming request for the certain page. For
detailed description, please reference the following links in MSDN:

#Creating and Managing Web Forms Pages
http://msdn.microsoft.com/library/en...ngEditingWebFo rms.asp?frame=true

#Web Forms Code Model
http://msdn.microsoft.com/library/en...mscodemodel.as p?frame=true

Hope helps. Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx

Nov 18 '05 #4

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

Similar topics

5
by: Karlsson-on-the-roof | last post by:
Dear All, I'm new to .NET and it seems that I'm terribly confused. I'm used to program windows applications using C++ and native API. I decided to try ..NET windows Form application. Of course,...
4
by: Hari Koduru | last post by:
Hi All, I am getting the following exception in an ASP.NET application. Exception Details: System.InvalidOperationException: Application is restarting. I have been to the following Support...
35
by: salad | last post by:
I have an application written in MS-Access. It is a complete application that manages the day-to-day operations of a business. The program is nearly ready to be used in other customer sites. ...
3
by: ajl | last post by:
I am getting following error on accessing a asp.net application from virtual directory /website. Please suggest me the solution. Server Error in '/website' Application....
1
by: =?Utf-8?B?UmVmYWVsIEFja2VybWFubg==?= | last post by:
We're in the final stages of developing a new version of our Flagship product. Many of the new features are based on ASP.NET 2.0 Our last build started to manifest the following symptom: After...
4
by: Mark | last post by:
Hi, i want to compile my application with this code: cd \windows\microsoft.net\framework\v2.0.50727 aspnet_compiler -p "c:\inetpub\wwwroot\myapp" -v / c:\compiled\myapp -f But the problem is...
2
by: saggydel | last post by:
I have 3 web application these all are independent to each other. 1 web application have .aspx, .aspx.cs, web.config, .dll and some other Supporting files. I want to make a common setup of all 3...
1
by: =?Utf-8?B?U2FpIFZhamph?= | last post by:
Hi I am working on a website in asp.net 2.0 with 2.0 framework and would like to deploy this to a windows 2003 64bit server and want it to run under 64bit framework., Is this really possible?...
0
by: Steve | last post by:
Hello- Your assistance with this issue is greatly appreciated. Environment: - Load-balanced IIS 6.0 servers (Win2003) - web servers point (via UNC path) to a Microsoft File Cluster on...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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.