Just tried calling the SetShadowCopyFiles in the Default AppDomain and
that worked...Was able to copy new versions over older versions without
shutting down the application.

Keith

-----Original Message-----
From: Smith, Ethan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 10, 2002 2:25 PM
To: [EMAIL PROTECTED]
Subject: Re: [ADVANCED-DOTNET] Assembly.LoadFrom and File Locking

I seem to remember testing the SetShadowCopyFiles() method on the
default
AppDomain, and it worked. If I recall, you have to do that before you
load
any other assemblies. My memory could be wrong though.

-Ethan

-----Original Message-----
From: Marsh, Drew [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 10, 2002 1:33 PM
To: [EMAIL PROTECTED]
Subject: Re: [ADVANCED-DOTNET] Assembly.LoadFrom and File Locking


Keith Franklin [mailto:[EMAIL PROTECTED]] wrote:

> Looking into different methods of using Assembly.LoadFrom
>
> Noticed that LoadFrom from a network share results in the
> files being locked. So that another process (person) trying
> to copy new versions to the share will be thwarted.
>
> Any way around this?

If you create your own AppDomain and set the ShadowCopyFiles to true,
you'll
be all set. I don't know of any configuration entries to make to change
this
setting for the default AppDomain.

Later,
Drew

[ .NET MVP | weblog: http://radio.weblogs.com/0104813/ ]

You can read messages from the Advanced DOTNET archive, unsubscribe from
Advanced DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.


------------------------------------------------------------------------
------
This message is intended only for the personal and confidential use of
the designated recipient(s) named above.  If you are not the intended
recipient of this message you are hereby notified that any review,
dissemination, distribution or copying of this message is strictly
prohibited.  This communication is for information purposes only and
should not be regarded as an offer to sell or as a solicitation of an
offer to buy any financial product, an official confirmation of any
transaction, or as an official statement of Lehman Brothers.  Email
transmission cannot be guaranteed to be secure or error-free.
Therefore, we do not represent that this information is complete or
accurate and it should not be relied upon as such.  All information is
subject to change without notice.

You can read messages from the Advanced DOTNET archive, unsubscribe from
Advanced DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced 
DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to