CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2008
    Posts
    47

    AppDomain.Load() issue

    Hi,

    I am trying to load an assembly from my program which I can unload easily. (So we can forget about Assembly.LoadFrom()).

    I have used the AppDomain approach and the Load / Unload methods.
    It work fine but I have to place my dll in the same directory as my executing Assembly.

    I tried changing the AppDomainSetup.ApplicationBase folder but it keeps on looking in the Assembly path.

    Do you have any clue of what I could do ?

    Example :
    My program : c:\Program Files\MyApp\Test.exe
    My DLL : c:\Test\Bla.dll

    Thank you
    Visual Studio 2005 Professional

  2. #2
    Join Date
    Dec 2008
    Posts
    3

    Re: AppDomain.Load() issue

    Hi All, thought I'd poke this subject.

    I'm trying mainly the same thing, loading assemblies to have them unloaded again and I simply can't find any way to do this for assemblies not residing in the executing directory.

    What I'm trying to do is to retrieve the assembly version for some assemblies and since these should be able to be switched runtime I cannot load them normally (Assembly.LoadFile) since it would lock them.

    I'm really at the end of my rope here, I haven't found anything anywhere that says anything about this in a usable manner, help is greatly appreciated.

    Thanks a lot guys

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured