Re: Loading a dll in multiple app domain
From: Sajjad Akhter (sa_at_nospam.nospam)
Date: 09/29/04
- Next message: Thomas: "Re: .Net COM+"
- Previous message: Santiago Perez: "Re: Authentication and Authorization in distributed app"
- In reply to: [MSFT]: "RE: Loading a dll in multiple app domain"
- Messages sorted by: [ date ] [ thread ]
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
>
- Next message: Thomas: "Re: .Net COM+"
- Previous message: Santiago Perez: "Re: Authentication and Authorization in distributed app"
- In reply to: [MSFT]: "RE: Loading a dll in multiple app domain"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|