Re: Loading a dll in multiple app domain

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Sajjad Akhter (sa_at_nospam.nospam)
Date: 09/29/04


Date: Wed, 29 Sep 2004 07:06:43 -0700

Yes both copies are same
If i put it in GAC that means i wont have xcopy installation,
right now every one gets framework.dll installed by just getting latests
version from source controle.
If i put it in GAC that means then ppl will have to install it in their
folder.

Importent point is that there shoudlnt be any problem i couldnt find that
how come same type can be treated as different .... is it picking up
something from parent AppDomain or am i not setting up new AppDomain
properly.

here is my code to create new AppDomain (which then creates those objects)

AppDomainSetup setup = new AppDomainSetup();

setup.ApplicationBase = file.DirectoryName;

setup.ApplicationName = "TestPlayer";

setup.ShadowCopyFiles = "true";

setup.ConfigurationFile = file.DirectoryName + "\\" + file.Name + ".config";

Evidence baseEvidence = AppDomain.CurrentDomain.Evidence;

Evidence evidence = new Evidence(baseEvidence);

string domainName = String.Format("{0}-TestDomain", file.Name);

testDomain = AppDomain.CreateDomain(domainName, evidence, setup);

"[MSFT]" <lukezhan@online.microsoft.com> wrote in message
news:XibU6wfpEHA.3356@cpmsftngxa06.phx.gbl...
> Hi Sajjad,
>
> Are the two copy of "framework.dll" are same? I think you may make the
> "framework.dll" strong named and put it in GAC. This should be able to
> avoid such a problem.
>
> Luke
>



Relevant Pages

  • Re: How difficult is it to clone a HD?
    ... police simply by virtue of being installed. ... Evidence Eliminator, IIUC, is specifically designed to eliminate ... installation of spyware and further software to actively hunt it out and ... Eliminator" it would be less suspicious than an application that is ...
    (uk.legal)
  • "Request failed" exception using AppDomain.CreateInstanceFrom() unless running with "
    ... creating an AppDomain based on only one piece of evidence (a test X509 ... AppDomain.CreateInstanceFrom() to instantiate an object in this AppDomain ... at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder ... at System.Activator.CreateInstanceFrom(String assemblyFile, String ...
    (microsoft.public.dotnet.security)
  • Re: Storgae durations
    ... evidence is heavily weighted in the other direction, ... I have never once seen anyone use a C99 implementation. ... I think I can tell the difference between a C90 installation and a C99 ...
    (comp.lang.c)
  • Re: Disk partitioning size
    ... can do is attempt to verbally tear down others withh no evidence ... Randem Systems ... Your Installation Specialist ... XP installations on large hard drives filed to near capacity and none ...
    (microsoft.public.windowsxp.general)
  • Re: evidence of a new domain
    ... Are you sure that you're invoking the method that displays the evidence ... within the new appdomain rather than in the original appdomain? ... unwrap the HelloWorld instance into the original appdomain before calling ... > This is the code snippt that I used to create a new app domain and load my ...
    (microsoft.public.dotnet.security)