473,795 Members | 3,157 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Large number of compiled dll's

Hello,

I have some projects which have lot of aspx files. I notice that for each
file, the ASP.NET compiles one .DLL in the Temporary ASP.NET folder + 3 or
for aditional files.

I think this slows the system down.

Is there any possibility to put all these files in one DLL - like to
precompile the whole site ?

Regards,
Bogdan
Nov 19 '05 #1
7 1095
Are you using VS.NET?

"Bogdan Nedelcu" <bogdan._sterge _nedelcu@team_S TERGE_net.ro> wrote in
message news:es******** ******@TK2MSFTN GP12.phx.gbl...
Hello,

I have some projects which have lot of aspx files. I notice that for each
file, the ASP.NET compiles one .DLL in the Temporary ASP.NET folder + 3 or
for aditional files.

I think this slows the system down.

Is there any possibility to put all these files in one DLL - like to
precompile the whole site ?

Regards,
Bogdan

Nov 19 '05 #2

I'm using VS.NET 2003, .NET 1.1

Nov 19 '05 #3
Well, hopefully you are using vs.net to compile you website. If this is the
case, there is no need to worry. Now, if you remove the CodeBehind
attribute and replace it with the Src attribute, then .net will compile your
page on the first request to that page.
"Bogdan Nedelcu" <bogdan._sterge _nedelcu@team_S TERGE_net.ro> wrote in
message news:Op******** ******@TK2MSFTN GP09.phx.gbl...

I'm using VS.NET 2003, .NET 1.1

Nov 19 '05 #4
Sorry but I don't think I understand what you mean.

Can you detail a bit more please.

From my knowledge, VS.NET doesn't compile the ASPX pages, only the
Codebehind (.cs) files, so only the ASP.NET framework is responsible for
compiling at first request. But this is actually the problem, if the page is
compilled at request time, it will generate a dll for each aspx file.

"Tampa.NET Koder" <an*******@micr osoft.com> wrote in message
news:Ox******** ******@TK2MSFTN GP14.phx.gbl...
Well, hopefully you are using vs.net to compile you website. If this is
the case, there is no need to worry. Now, if you remove the CodeBehind
attribute and replace it with the Src attribute, then .net will compile
your page on the first request to that page.
"Bogdan Nedelcu" <bogdan._sterge _nedelcu@team_S TERGE_net.ro> wrote in
message news:Op******** ******@TK2MSFTN GP09.phx.gbl...

I'm using VS.NET 2003, .NET 1.1


Nov 19 '05 #5
Well then, you have answered your own question. Yes you are right, at
runtime the codebehind file and the aspx file gets compile into one file.
So, if this is the way that the asp.net team designed it, are you looking
for a way to bypass this model? To be honest, compiled code will never slow
you down, its a whole lot faster and scripting as previously done with ASP.
Maybe you should try other things, like turning off default settings like
Debug="false", EnableSessionSt ate="false", etc. Keeping these settings on if
you have no use for them does have a performance hit. Otherwise, I would
wait for someone else to reply to see if they have a solution for you.

"Bogdan Nedelcu" <bogdan._sterge _nedelcu@team_S TERGE_net.ro> wrote in
message news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
Sorry but I don't think I understand what you mean.

Can you detail a bit more please.

From my knowledge, VS.NET doesn't compile the ASPX pages, only the
Codebehind (.cs) files, so only the ASP.NET framework is responsible for
compiling at first request. But this is actually the problem, if the page
is compilled at request time, it will generate a dll for each aspx file.

"Tampa.NET Koder" <an*******@micr osoft.com> wrote in message
news:Ox******** ******@TK2MSFTN GP14.phx.gbl...
Well, hopefully you are using vs.net to compile you website. If this is
the case, there is no need to worry. Now, if you remove the CodeBehind
attribute and replace it with the Src attribute, then .net will compile
your page on the first request to that page.
"Bogdan Nedelcu" <bogdan._sterge _nedelcu@team_S TERGE_net.ro> wrote in
message news:Op******** ******@TK2MSFTN GP09.phx.gbl...

I'm using VS.NET 2003, .NET 1.1



Nov 19 '05 #6
ASP.NET 1.x does try to compile all pages in a directory into a single
assembly when the first page from a directory is requested.

There are some settings that can modify this behavior:

1) In <compilation> the debug attribute is set to true.

2) In <compilation> the batchCompile attribute is set to false.

3) Pages in the directory are using different languages.

4) Pages in the directory are updated after the initial batch compile.

Probably reason #1 is why you don't have a batch compile happening.

--
Scott
http://www.OdeToCode.com/blogs/scott/
On Sat, 5 Mar 2005 19:08:00 +0200, "Bogdan Nedelcu"
<bogdan._sterge _nedelcu@team_S TERGE_net.ro> wrote:
Sorry but I don't think I understand what you mean.

Can you detail a bit more please.

From my knowledge, VS.NET doesn't compile the ASPX pages, only the
Codebehind (.cs) files, so only the ASP.NET framework is responsible for
compiling at first request. But this is actually the problem, if the page is
compilled at request time, it will generate a dll for each aspx file.

"Tampa.NET Koder" <an*******@micr osoft.com> wrote in message
news:Ox******* *******@TK2MSFT NGP14.phx.gbl.. .
Well, hopefully you are using vs.net to compile you website. If this is
the case, there is no need to worry. Now, if you remove the CodeBehind
attribute and replace it with the Src attribute, then .net will compile
your page on the first request to that page.
"Bogdan Nedelcu" <bogdan._sterge _nedelcu@team_S TERGE_net.ro> wrote in
message news:Op******** ******@TK2MSFTN GP09.phx.gbl...

I'm using VS.NET 2003, .NET 1.1



Nov 19 '05 #7
Answer accepted ;)

Thank you very much.

"Scott Allen" <sc***@nospam.o detocode.com> wrote in message
news:if******** *************** *********@4ax.c om...
ASP.NET 1.x does try to compile all pages in a directory into a single
assembly when the first page from a directory is requested.

There are some settings that can modify this behavior:

1) In <compilation> the debug attribute is set to true.

2) In <compilation> the batchCompile attribute is set to false.

3) Pages in the directory are using different languages.

4) Pages in the directory are updated after the initial batch compile.

Probably reason #1 is why you don't have a batch compile happening.

--
Scott
http://www.OdeToCode.com/blogs/scott/
On Sat, 5 Mar 2005 19:08:00 +0200, "Bogdan Nedelcu"
<bogdan._sterge _nedelcu@team_S TERGE_net.ro> wrote:
Sorry but I don't think I understand what you mean.

Can you detail a bit more please.

From my knowledge, VS.NET doesn't compile the ASPX pages, only the
Codebehind (.cs) files, so only the ASP.NET framework is responsible for
compiling at first request. But this is actually the problem, if the page
is
compilled at request time, it will generate a dll for each aspx file.

"Tampa.NET Koder" <an*******@micr osoft.com> wrote in message
news:Ox****** ********@TK2MSF TNGP14.phx.gbl. ..
Well, hopefully you are using vs.net to compile you website. If this is
the case, there is no need to worry. Now, if you remove the CodeBehind
attribute and replace it with the Src attribute, then .net will compile
your page on the first request to that page.
"Bogdan Nedelcu" <bogdan._sterge _nedelcu@team_S TERGE_net.ro> wrote in
message news:Op******** ******@TK2MSFTN GP09.phx.gbl...

I'm using VS.NET 2003, .NET 1.1


Nov 19 '05 #8

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

Similar topics

0
254
by: Adam J. Schaff | last post by:
Hello, I am writing some libraries of common reusable code for my company. Originally, I thought I would break them into separate projects based on some arbitrary categorization, but it occurs to me that namespaces might be the only separation I need, and that I might get away with using a single, albeit large, assembly. The advantage would be that my developers would only have to reference one dll. Since the developers will not be using...
4
1455
by: Chris | last post by:
Where I work, we basically have 1 large ASP.NET application that we work on. This is compiled into one big DLL. I think it would be a good idea to somehow break up the project, so that if I am in the middle of development on some sub project, I don't have to push up that code to fix a bug in another part of the application.
0
1061
by: Adam J. Schaff | last post by:
Hello, I am writing some libraries of common reusable code for my company. Originally, I thought I would break them into separate projects based on some arbitrary categorization, but it occurs to me that namespaces might be the only separation I need, and that I might get away with using a single, albeit large, assembly. The advantage would be that my developers would only have to reference one dll. Since the developers will not be using...
5
349
by: Tim Marsden | last post by:
HI, I am developing a application in vb.net. I split down my functionality into several separate DLL's. The solution is becoming very large, nearly 100 projects, each project a dll's. There is one entry exe. It is very slow to load and compile now. All my references are project references, is there a standard way to split the solution. In the past I have had versioning problems if a compile groups of projects individually.
0
9672
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9519
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10437
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
7538
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6780
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5437
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5563
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3723
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2920
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.