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

Application Domain and Hot Deployment

Dear All,
Every Virtual directory under IIS is executed in a new AppDomain.
This is done by CLR itself. When I deploy a dll under its bin, the
AppDomain is restarted as a result all my dlls under the bin again go
for compilation.
Is there anyway to avoid this? Can I create a AppDomain
programatically, that will avoid this error? Will putting the dll in
GAC solve the problem?
How do I avoid AppDomain restarts under IIS due to hot deployment?
Also if my application access any function of a dll, then it does not
get copied into the bin folder (message stating that the dll is in use
is displayed). How do I overcome these? Please help...

Thanks & Regards
Jack
Nov 18 '05 #1
4 2471
Hi Jack:

The way to avoid "the file is in use" msg is to take advantage of the
shadow copy feature in asp.net. Assemblies in the bin directory are
copied to a temp directory before being loaded into the process and
avoid being locked. Nothing from outside the bin directory is shadow
copied.

The only way to avoid the restart would be to manage your own app
domain. Once an appdomain loads a dll there is no unloading - the
whole appdomain has to come down. If you google.com for [.net plugin
architecture] you'll find some examples.

Is the recompile causing a big problem?

--
Scott
http://www.OdeToCode.com/blogs/scott/

On 30 Nov 2004 02:03:31 -0800, su***@volcanomail.com (Jack Wright)
wrote:
Dear All,
Every Virtual directory under IIS is executed in a new AppDomain.
This is done by CLR itself. When I deploy a dll under its bin, the
AppDomain is restarted as a result all my dlls under the bin again go
for compilation.
Is there anyway to avoid this? Can I create a AppDomain
programatically, that will avoid this error? Will putting the dll in
GAC solve the problem?
How do I avoid AppDomain restarts under IIS due to hot deployment?
Also if my application access any function of a dll, then it does not
get copied into the bin folder (message stating that the dll is in use
is displayed). How do I overcome these? Please help...

Thanks & Regards
Jack


Nov 18 '05 #2
> Is the recompile causing a big problem?
Yes. Users experience speed problems when a deployment is done. How to
overcome this problem. Why does it go for recompiling all the dlls?
Plugin archietecture

I guess this is basically for dlls that are put in a directory other
than the bin (that are found using the probing path). Am I right?

Will putting the dll in GAC solve the problem?

Please help...

TALIA
Many Regards
Jack
Nov 18 '05 #3
Even with the GAC you'd have to shut down the application to upgrade,
and the app would recompile the next time it started.

You might google for "ASPX precompile" and see if there are any tools
to help. It is probably the ASPX compiling and JITing that is chewing
up time.

--
Scott
http://www.OdeToCode.com/blogs/scott/
On 30 Nov 2004 20:46:48 -0800, su***@volcanomail.com (Jack Wright)
wrote:
Is the recompile causing a big problem?

Yes. Users experience speed problems when a deployment is done. How to
overcome this problem. Why does it go for recompiling all the dlls?
Plugin archietecture

I guess this is basically for dlls that are put in a directory other
than the bin (that are found using the probing path). Am I right?

Will putting the dll in GAC solve the problem?

Please help...

TALIA
Many Regards
Jack


Nov 18 '05 #4
But even if I deploy a class dll why does all ASPX pages go recompile...
Also has MS defined a strategy for "Hot Deployment"
Please help...

TALIA
Many Regards
Jack

Scott Allen <bitmask@[nospam].fred.net> wrote in message news:<i8********************************@4ax.com>. ..
Even with the GAC you'd have to shut down the application to upgrade,
and the app would recompile the next time it started.

You might google for "ASPX precompile" and see if there are any tools
to help. It is probably the ASPX compiling and JITing that is chewing
up time.

--
Scott
http://www.OdeToCode.com/blogs/scott/
On 30 Nov 2004 20:46:48 -0800, su***@volcanomail.com (Jack Wright)
wrote:
Is the recompile causing a big problem?

Yes. Users experience speed problems when a deployment is done. How to
overcome this problem. Why does it go for recompiling all the dlls?
Plugin archietecture

I guess this is basically for dlls that are put in a directory other
than the bin (that are found using the probing path). Am I right?

Will putting the dll in GAC solve the problem?

Please help...

TALIA
Many Regards
Jack

Nov 19 '05 #5

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

Similar topics

0
by: Chris Thunell | last post by:
I have a program that i have written in vb.net. The program will be used from within a windows 2000 Active Directory domain. Is there any way to give FULL trust to this application that will be...
1
by: Thorpe | last post by:
I have build a .Net (C#) winform application. The application opens and reads and writes to an xml file that is stored with the assembly. When I run the program on my local PC everything works....
1
by: Jack Wright | last post by:
Thanks Scott, Nice article...I have managed to have a private bin path and shadow copy dlls from there...now for a small question... How do I create a new AppDomain and make the worker process use...
7
by: Bobby C. | last post by:
My company is in the process of getting ready (well actually QTR 2 2004) to roll out a rewritten version of a vertical market application for the municipal market (small and medium sized cities). ...
0
by: Mart | last post by:
Hi, I have just written (my first) VB.net app using MS Visual Basic 2005 Express Edition Beta. It is fairly simple, it reads some configuration data from an XML file then opens a new window...
6
by: Josef Brunner | last post by:
Hi, I published my application (VS 2005) and am now trying to install it when I get this error message. It worked before...even on a different machine. Here is the detailed description: ...
2
by: Michael Kalika | last post by:
Hi, We have developed a VSTO 2005 Excel application and we would like to leverage ClickOnce deployment mechanism for distribution of this application. How can we do that? I was digging in MSDN...
0
by: Tifer | last post by:
Hello, I am building my first .Net Application. The first couple of Publish and Installs I did went fine. But after a couple of builds, I get a modal dialogue box error every time upon trying...
0
by: Andrus | last post by:
I created .NET 3.5 SP1 Winforms application setup by pressing publish button in VCSE 2008 SP1 Running created setup.exe in same computer causes error below "Reference in the manifest does not...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...

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.