473,395 Members | 1,502 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.

Application DLL In The Bin Folder

Hi

This might seem like a wierd question, but I'm going to ask it anyway!
When I build my ASP.NET apps, a DLL is created in the bin folder for
the application. What exactly is in this DLL and what does it do?

Thanks,

Kulgan.

Nov 19 '05 #1
6 1368
a DLL is an assembly consisting of all you .cs files.
These sit in a semi-compiled state so your site runs quicker.

It also saves you the hassle of having all your source code up on the live
server.
All you should need (if compiled propertly - like Vis Studio's default) is
the assembly and your aspx files (ofcourse htm's, .configs etc)

So basicly, its all your .cs files compiled into a single file.
Makes deployment a helluva lot easier.

But beware, loading this file up, will have a dramatic efffect on the site,
it will have to load this into memory, and sessions may be lost.
Also, the next time your try view a page on your site, it will take a bit
longer to load as this will be loading up the new assembly. - but only for
the first page

HTH
"Kulgan" <ni**********@gmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
Hi

This might seem like a wierd question, but I'm going to ask it anyway!
When I build my ASP.NET apps, a DLL is created in the bin folder for
the application. What exactly is in this DLL and what does it do?

Thanks,

Kulgan.

Nov 19 '05 #2
Kulgan,

All the Codebehind code you create in your ASPX forms in VS.NET get compiled
into this assembly

Note the dll is all the CodeBehind code - if you don't use CodeBehind and do
all your code inline no DLL is created. Not recommended though if you work
with VS.NET 2003, since it doesn't work well with non-CodeBehind pages.

+++ Rick ---

--

Rick Strahl
West Wind Technologies
www.west-wind.com
www.west-wind.com/weblog

"Kulgan" <ni**********@gmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
Hi

This might seem like a wierd question, but I'm going to ask it anyway!
When I build my ASP.NET apps, a DLL is created in the bin folder for
the application. What exactly is in this DLL and what does it do?

Thanks,

Kulgan.

Nov 19 '05 #3
Many thanks for the replies to this query. Are non-code behind source
files also compiled into this DLL? It is possible to place a .vb file
into the web app folder structure, s does this get compiled in as well?

Thanks,

Nick.

Nov 19 '05 #4
Non code-behind files are NOT compiled into the dll.
Also, code behind files can be specified not to be compiled into the dll -
but then they have to be deployed with the live site
By default, Visual Studio compiles these into a DLL (and this is a better
more efficient approach - easier to deploy as well)

if you add a VB file into your project, Visual Studio will compile this into
the dll,
if this is not part of your project, but just in the same folder, it will
not be compiled into the dll.

So, if you right click in your solution explorer, and click add class file
(.vb file), this will by default be compiled into your assembly

Hope thats clear
"Kulgan" <ni**********@gmail.com> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
Many thanks for the replies to this query. Are non-code behind source
files also compiled into this DLL? It is possible to place a .vb file
into the web app folder structure, s does this get compiled in as well?

Thanks,

Nick.

Nov 19 '05 #5
Sorry, just to clarify there

By NON-Code behind files, i was referring to ASPX pages with VB/C# code in
the ASPX pages.
I was not referring to .VB files which can also be called non code behind
files. - infact thats such a general term it can mean anything :)

So, if you place your code into an ASPX page as opposed to using Code Behind
it will not be compiled into the assembly.
But a .VB file will if added through the Visual Studio front end and you
have not changed the compilation method
"Grant Merwitz" <gr***@workshare.com> wrote in message
news:Oh**************@TK2MSFTNGP10.phx.gbl...
Non code-behind files are NOT compiled into the dll.
Also, code behind files can be specified not to be compiled into the dll -
but then they have to be deployed with the live site
By default, Visual Studio compiles these into a DLL (and this is a better
more efficient approach - easier to deploy as well)

if you add a VB file into your project, Visual Studio will compile this
into the dll,
if this is not part of your project, but just in the same folder, it will
not be compiled into the dll.

So, if you right click in your solution explorer, and click add class file
(.vb file), this will by default be compiled into your assembly

Hope thats clear
"Kulgan" <ni**********@gmail.com> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
Many thanks for the replies to this query. Are non-code behind source
files also compiled into this DLL? It is possible to place a .vb file
into the web app folder structure, s does this get compiled in as well?

Thanks,

Nick.


Nov 19 '05 #6
Thanks for the comprehensive answer!

Kulgan.

Nov 19 '05 #7

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

Similar topics

5
by: Robert Magnusson | last post by:
Hi All, This is sure to be an easy question. I am wondering what the accepted standard is for referencing a sub-folder below the application.exe folder? In VB6 you simply used App.Path and...
13
by: Dennis C. Drumm | last post by:
I use the Documents and Settings\All Users\Application Data\AppName folder to store xml settings that are applicable to all user who log onto a machine. (The uers personal settings associated with...
3
by: MisterG | last post by:
Hi, In my code, I rename a folder and then the asp.net application restarts ! So i've lost my session variables ... How is it possible for the application asp.net to restart when you rename a...
1
by: Jim Heavey | last post by:
Hello, I am taking ASP.Net at school and I have run into differences between running the code at home and running it at school. I have a couple of issues which I believe are related to the folder...
5
by: Jim Heavey | last post by:
Hello, I am trying to figure out how to put my application onto the server. I am deploying to a Windows 2000 Server When I bring up Internet Services Manager and navigate to the Default Web...
14
by: Ray5531 | last post by:
I have a console application in my local computer which I like to use remoting in it,to instanciate an object (MyClass.dll) in a web application(its bin folder) in a completely seperated box(in the...
2
by: nologin | last post by:
Hello. I have an application which has the use of another assembly. How can i make a deployment project, which will be copy this assembly not to application folder but system folder - depends on...
5
markrawlingson
by: markrawlingson | last post by:
Hey guys, Having a bit of a complicated issue here so please bare with me while I explain. I'm also not a system admin and don't know a whole lot about IIS, so i apologize in advance. I...
5
by: IUnknown | last post by:
Ok, we are all aware of the situation where modifying the folder structure (adding files, folders, deleting files, etc) will result in ASP.NET triggering a recompilation/restart of the application....
11
by: mjahabarsadiq | last post by:
Hi I have created a web application. I am using ant to build the war and deploy in tomcat. The war file is deployed under "TOMCATE_HOME/work/standalone/localhost/onlineres.war". I have 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: 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
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...

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.