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

DLL Lock Issue

Hi everyone

Well here is my problem

I hope you can help me

I have a web application. My web application is 4 different dlls

1. The First DLL is a Class library with shared routines and staff like that
(VB Project)

2. The Second DLL is an ASP .Net application and it's the shell let's say.
It has some basics screens and from there you can build all the layout of
the application

3. The Third DLL is a DLL with web services

4. The Last DLL is an ASP .Net application also. Is a different application
and is loaded from the 2nd DLL. This Application uses an other database and
has its own components created.

The Second, Third and Forth DLL have a reference to the First DLL. (Project
Reference)

The Physical Path of the Application Looks Like This

Web Application (Directory)

|-\Bin (First & Second DLL)

| Web.Config File

|

|-\Services (Directory)

| |-\bin(Third Dll)

| | Web.Config File for Loading the Assembly

|

|-\Project (Directory)

|-\bin(Forth DLL)

| Web.Config file for loading the Assembly

Now I hope you have understand the structure.

The Problem is that now we are developing the Forth DLL and some times when
we make some changes only in the DLL we can not copy the new DLL on the web
servers because it's been used by an other process (Windows Message).

When we insert the DLL on the Web Application Bin Directory and delete the
Project Web.Config File that loads the assembly we can do what ever we want.
Delete the DLL , Copy a new DLL in the Directory etc.

Can any one help me ??

The structure we are using now is the correct

The Web.Config Of the Web Application looks like this one

<runtime>

<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">

<probing privatePath="Project/bin;bin;services/bin; " />

</assemblyBinding>

</runtime>

<system.web>

<compilation defaultLanguage="vb" debug="true">

<assemblies></assemblies>

</compilation>

</system.web>

And the Web.Config Inside the Project Directory Looks like this

<system.web>

<compilation defaultLanguage="vb" debug="true">

<assemblies>

<add assembly="DLI" />

</assemblies>

</compilation>

<system.web>

What can I do to fix the problem??

We need to upload new DLL fro the Project often. It's not a good idea to
upload the entire "Web Application" and create a new version. Some times we
need to do small, and also the cost of uploading is enormous.

And also I need the production environment to be exactly the same as the
development environment. It's not a solution to build the Project and then
manually copy the DLL from the Project\Bin Folder to the Web Application\Bin
Folder

Thank you all




Nov 19 '05 #1
3 1348
Sorry i have make an spelling error
The Web.Config Inside the Project Directory Looks like this

<system.web>

<compilation defaultLanguage="vb" debug="true">

<assemblies>

<add assembly="Project" />

</assemblies>

</compilation>

<system.web>

The Assembly has the corrent name
I have just write it wrongly were
The assembly is loaded correctly.

Thank you ;)
Dimitris

"Programmer" <se*******@hotmail.com> wrote in message
news:um*************@TK2MSFTNGP10.phx.gbl...
Hi everyone

Well here is my problem

I hope you can help me

I have a web application. My web application is 4 different dlls

1. The First DLL is a Class library with shared routines and staff like that (VB Project)

2. The Second DLL is an ASP .Net application and it's the shell let's say.
It has some basics screens and from there you can build all the layout of
the application

3. The Third DLL is a DLL with web services

4. The Last DLL is an ASP .Net application also. Is a different application and is loaded from the 2nd DLL. This Application uses an other database and has its own components created.

The Second, Third and Forth DLL have a reference to the First DLL. (Project Reference)

The Physical Path of the Application Looks Like This

Web Application (Directory)

|-\Bin (First & Second DLL)

| Web.Config File

|

|-\Services (Directory)

| |-\bin(Third Dll)

| | Web.Config File for Loading the Assembly

|

|-\Project (Directory)

|-\bin(Forth DLL)

| Web.Config file for loading the Assembly

Now I hope you have understand the structure.

The Problem is that now we are developing the Forth DLL and some times when we make some changes only in the DLL we can not copy the new DLL on the web servers because it's been used by an other process (Windows Message).

When we insert the DLL on the Web Application Bin Directory and delete the
Project Web.Config File that loads the assembly we can do what ever we want. Delete the DLL , Copy a new DLL in the Directory etc.

Can any one help me ??

The structure we are using now is the correct

The Web.Config Of the Web Application looks like this one

<runtime>

<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">

<probing privatePath="Project/bin;bin;services/bin; " />

</assemblyBinding>

</runtime>

<system.web>

<compilation defaultLanguage="vb" debug="true">

<assemblies></assemblies>

</compilation>

</system.web>

And the Web.Config Inside the Project Directory Looks like this

<system.web>

<compilation defaultLanguage="vb" debug="true">

<assemblies>

<add assembly="DLI" />

</assemblies>

</compilation>

<system.web>

What can I do to fix the problem??

We need to upload new DLL fro the Project often. It's not a good idea to
upload the entire "Web Application" and create a new version. Some times we need to do small, and also the cost of uploading is enormous.

And also I need the production environment to be exactly the same as the
development environment. It's not a solution to build the Project and then
manually copy the DLL from the Project\Bin Folder to the Web Application\Bin Folder

Thank you all



Nov 19 '05 #2
The shadow copy feature of ASP.NET is only enabled for the bin
subdirectory. Shadow copy is a feature that copies the dll to a
temporary location before loading into an appdomain, thus avoiding a
lock on the original dll.

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

On Thu, 9 Dec 2004 10:46:19 +0200, "Programmer"
<se*******@hotmail.com> wrote:
Hi everyone

Well here is my problem

I hope you can help me

I have a web application. My web application is 4 different dlls

1. The First DLL is a Class library with shared routines and staff like that
(VB Project)

2. The Second DLL is an ASP .Net application and it's the shell let's say.
It has some basics screens and from there you can build all the layout of
the application

3. The Third DLL is a DLL with web services

4. The Last DLL is an ASP .Net application also. Is a different application
and is loaded from the 2nd DLL. This Application uses an other database and
has its own components created.

The Second, Third and Forth DLL have a reference to the First DLL. (Project
Reference)

The Physical Path of the Application Looks Like This

Web Application (Directory)

|-\Bin (First & Second DLL)

| Web.Config File

|

|-\Services (Directory)

| |-\bin(Third Dll)

| | Web.Config File for Loading the Assembly

|

|-\Project (Directory)

|-\bin(Forth DLL)

| Web.Config file for loading the Assembly

Now I hope you have understand the structure.

The Problem is that now we are developing the Forth DLL and some times when
we make some changes only in the DLL we can not copy the new DLL on the web
servers because it's been used by an other process (Windows Message).

When we insert the DLL on the Web Application Bin Directory and delete the
Project Web.Config File that loads the assembly we can do what ever we want.
Delete the DLL , Copy a new DLL in the Directory etc.

Can any one help me ??

The structure we are using now is the correct

The Web.Config Of the Web Application looks like this one

<runtime>

<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">

<probing privatePath="Project/bin;bin;services/bin; " />

</assemblyBinding>

</runtime>

<system.web>

<compilation defaultLanguage="vb" debug="true">

<assemblies></assemblies>

</compilation>

</system.web>

And the Web.Config Inside the Project Directory Looks like this

<system.web>

<compilation defaultLanguage="vb" debug="true">

<assemblies>

<add assembly="DLI" />

</assemblies>

</compilation>

<system.web>

What can I do to fix the problem??

We need to upload new DLL fro the Project often. It's not a good idea to
upload the entire "Web Application" and create a new version. Some times we
need to do small, and also the cost of uploading is enormous.

And also I need the production environment to be exactly the same as the
development environment. It's not a solution to build the Project and then
manually copy the DLL from the Project\Bin Folder to the Web Application\Bin
Folder

Thank you all




Nov 19 '05 #3
what is the error, Dimitris?

When you delete web.config, your web application is notified. It will
unload all dlls and wait for a calling app to request a resource before
loading them up again. This allows you to update your dll.

This is pretty normal behavior.

If you want to be able to update a DLL "on the fly" then you will want to
provide the name of the DLL in the web.config and use reflection to load it.
THat way, you can install a new DLL WITH A NEW NAME into the web directory,
and then just replace the web.config file with an updated file, which has
the effect of unloading the old dlls. When your app wants the resources, it
checks the web.config for the name of the dll to load. Since a new name
will be provided, you can load the new one.

Hope this helps,
--- Nick

"Programmer" <se*******@hotmail.com> wrote in message
news:uf**************@TK2MSFTNGP09.phx.gbl...
Sorry i have make an spelling error
The Web.Config Inside the Project Directory Looks like this

<system.web>

<compilation defaultLanguage="vb" debug="true">

<assemblies>

<add assembly="Project" />

</assemblies>

</compilation>

<system.web>

The Assembly has the corrent name
I have just write it wrongly were
The assembly is loaded correctly.

Thank you ;)
Dimitris

"Programmer" <se*******@hotmail.com> wrote in message
news:um*************@TK2MSFTNGP10.phx.gbl...
Hi everyone

Well here is my problem

I hope you can help me

I have a web application. My web application is 4 different dlls

1. The First DLL is a Class library with shared routines and staff like

that
(VB Project)

2. The Second DLL is an ASP .Net application and it's the shell let's say. It has some basics screens and from there you can build all the layout of the application

3. The Third DLL is a DLL with web services

4. The Last DLL is an ASP .Net application also. Is a different

application
and is loaded from the 2nd DLL. This Application uses an other database

and
has its own components created.

The Second, Third and Forth DLL have a reference to the First DLL.

(Project
Reference)

The Physical Path of the Application Looks Like This

Web Application (Directory)

|-\Bin (First & Second DLL)

| Web.Config File

|

|-\Services (Directory)

| |-\bin(Third Dll)

| | Web.Config File for Loading the Assembly

|

|-\Project (Directory)

|-\bin(Forth DLL)

| Web.Config file for loading the Assembly

Now I hope you have understand the structure.

The Problem is that now we are developing the Forth DLL and some times

when
we make some changes only in the DLL we can not copy the new DLL on the

web
servers because it's been used by an other process (Windows Message).

When we insert the DLL on the Web Application Bin Directory and delete the Project Web.Config File that loads the assembly we can do what ever we

want.
Delete the DLL , Copy a new DLL in the Directory etc.

Can any one help me ??

The structure we are using now is the correct

The Web.Config Of the Web Application looks like this one

<runtime>

<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">

<probing privatePath="Project/bin;bin;services/bin; " />

</assemblyBinding>

</runtime>

<system.web>

<compilation defaultLanguage="vb" debug="true">

<assemblies></assemblies>

</compilation>

</system.web>

And the Web.Config Inside the Project Directory Looks like this

<system.web>

<compilation defaultLanguage="vb" debug="true">

<assemblies>

<add assembly="DLI" />

</assemblies>

</compilation>

<system.web>

What can I do to fix the problem??

We need to upload new DLL fro the Project often. It's not a good idea to
upload the entire "Web Application" and create a new version. Some times

we
need to do small, and also the cost of uploading is enormous.

And also I need the production environment to be exactly the same as the
development environment. It's not a solution to build the Project and then manually copy the DLL from the Project\Bin Folder to the Web

Application\Bin
Folder

Thank you all




Nov 19 '05 #4

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

Similar topics

4
by: Rich Sienkiewicz | last post by:
Some classes, like Queue and SortedList, have a Synchronized method which gives a thread safe wrapper object for these classes. But the lock() statement does the same thing. Is there any rules as to...
2
by: Trent | last post by:
Hello, all. I have the following production DB2 environment. DB2 8.1.4 (fp4) WG edition with 2 production databases on Windows 2003 standard edition. My first question is regard with...
14
by: Sharon | last post by:
Hi all. I have an ArrayList and sometimes while enumerating through, i get an exception because another thread has added to the ArrayList. To solve this problem, i lock the enumeration, passing...
4
by: Ed L. | last post by:
I think I'm seeing table-level lock contention in the following function when I have many different concurrent callers, each with mutually distinct values for $1. Is there a way to reimplement...
17
by: djc | last post by:
I got great info on related question previously. This link <http://www.yoda.arachsys.com/csharp/threads/volatility.shtml> from Brian Gideon was especially informative. 1) the lock statement does...
20
by: Kurt | last post by:
Below is a class that can accessed from multiple threads and I want the class to be thread safe. I have a private timer member whose interval can be changed by different threads. Which is the correct...
94
by: Samuel R. Neff | last post by:
When is it appropriate to use "volatile" keyword? The docs simply state: " The volatile modifier is usually used for a field that is accessed by multiple threads without using the lock...
1
by: jj_online | last post by:
This is not a C++ specific issue. However, I am trying to implement a readwritelock in C++ and hence would like to get help from this group. a readwritelock allows shared lock among all readers...
11
by: fritzcwdev | last post by:
I have a class as follows: public class OperationFeedback { DateTime _startTime; public DateTime StartTime { get {
6
by: Curious | last post by:
I have an arraylist used in three separate methods. In method #1 (event method), some items are removed from the arraylist if certain conditions are met; In method #2 (event method),...
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: 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
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
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
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...
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
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.