RE: ASP.Net 1.1 shadow copy + reflection problem
From: Joco (Joco_at_discussions.microsoft.com)
Date: 11/29/04
- Next message: Craig HB: "Re: Advice needed on distributing new versions of a dll"
- Previous message: Jon Skeet [C# MVP]: "Re: Copy protection for a .NET application"
- In reply to: icesoftware: "RE: ASP.Net 1.1 shadow copy + reflection problem"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 29 Nov 2004 04:21:01 -0800
ic.
Well if you use strong naming (SN) the problem will not dissapear but rather
escalate. The thing is (IMHO) that then some portions of your application
would use the old code and others the new one. If that is OK with, great.
If not: I would suggest placing file watchers on the dll's and reloading
them or even restarting whole application when one of them changes.
If you load all your dll's from the same folder you can simplify this by
adding a watcher to the folder and restart/reload each time contents of the
folder change. Hope this helps somewhat.
Joco
"icesoftware" wrote:
> > What I would like to know is why do you use SC? .NET by itself does not lock
> > dll's so you should be free to change/delete/add them even when the
> > application is running.
>
> First of all thanks a lot for the hint.
> To answer your question, I use SC explicitly since I need to load libraries
> (assemblies) from other directories that are not the bin. If I was using just
> the bin then SC would be on by default and the binaries would not be locked.
> In my case, instead, through reflection I can load the assembly but it's
> locked. I needed to be able to update the binaries and so I activated the SC
> on the directories I need to load from.
>
> Now I am experimenting strong naming the assemblies since I read that if you
> do so the LoadFrom should be able to differenciate between two different
> versions of the assembly loaded from the same dir. So far I'm not getting any
> good response.
>
> Anyone has some other hint?
>
> Thanks in advance for any help.
>
> ACL
- Next message: Craig HB: "Re: Advice needed on distributing new versions of a dll"
- Previous message: Jon Skeet [C# MVP]: "Re: Copy protection for a .NET application"
- In reply to: icesoftware: "RE: ASP.Net 1.1 shadow copy + reflection problem"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|