RE: ASP.Net 1.1 shadow copy + reflection problem

From: icesoftware (icesoftware_at_discussions.microsoft.com)
Date: 11/29/04


Date: Mon, 29 Nov 2004 04:11:02 -0800


> 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



Relevant Pages

  • Re: Make a DLL in C# for FoxPro
    ... Interop from managed -> COM is a different story, here we are talking about new developments, and here you have probably accepted the larger memory footprint :-) ... The first is handled by the DLL/C++ code I posted which loads the .NET runtime and allows loading of assemblies and types. ... If you're not adverse to registering components you can completely skip this step and just use the .NET wrapper component from FoxPro with CreateObject. ... *** Load Static Method ...
    (microsoft.public.dotnet.languages.csharp)
  • RE: bizarre asp.net app loading failure
    ... I gave it a try but unfortunately the fusion logs didn't show ... I see a bunch of assembly load logs for application 3e70de80 ... (presumably the name for the app pool). ... of assemblies that reference it, even though they are not used by all the ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: Problem with WinForms User Control Hosted in IE
    ... the bin dir is a particular directory which is used by asp.net ... application to store application assemblies, so by default it should not be ... public to internet(so no read permission is granted), ... Problem with WinForms User Control Hosted in IE ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Force Load DLL From Different Dir?
    ... try load the version MyAddIn bound to at compile time. ... Actually this is NOT version related, but context related: Assemblies can ... Microsoft Online Community Support ...
    (microsoft.public.dotnet.framework)
  • Comparing the assembly name resulted in the mismatch: Minor Version
    ... I think the problem is hidden in some dark corner of the Microsoft universe. ... An error occurred during the processing of a configuration file ... Could not load file or assembly 'ADODB, ... Line 64: <assemblies> ...
    (microsoft.public.vstudio.development)

Loading