Load outside App into a appdomain

Posted on 2007-07-30
Last Modified: 2013-11-07
Im playing with cross Appdomain stuff,  C# or VB
I can load an app/EXE (supposing I have its signature) into my area in its own Appdomain and gain access,
I need to do this with a unknown app and gain access
Question by:Micki-Weaver
    LVL 9

    Expert Comment

    If you don't know the application how would you load the application?
    What do you mean by "gain access"? And by "my area"?

    Author Comment

    Sorry, programmatically load software that is a "unknown", as in it can dramatically change over time in anyway, I know what I wish to load but I never know what it is.

    if I load an app in to a appdomain I can gain access to it, such as trigger it's functionality, from my program

    I have a process space I load my app into, in side that is a appdomain, I can make multiple appdomains, I can load other app's in to new appdomains, I call the process area my space

    my problem:
    i can load another app into a appdomain inside my area, and access it, but I have to have it's signature before I can load it, I need to work around this.
    LVL 9

    Accepted Solution

    App signature? What's that?
    An assembly is usually a file (.dll,.exe); or it might be a set of files, still with a .dll or .exe as main where the external files are referred through the manifest. From file or other stream, all you have to do is load the assembly (Assembly.Load[File]), it will manage the whole loading of the external files, if any. Then you can get the version, the manifest, the contained files, the Entry Point (if one exists), the Evidence with the permissions and  the types contained in the assembly just by call Get[Exported]Types and so on.

    Author Comment


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
    Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
    THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
    The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now