Application Domains...

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Alan Seunarayan

    #1

    Application Domains...

    Hello all,
    I am developing a .NET application that controls an existing .NET exe.
    The problem is that for my application to run the secondary application it
    has to reside in the same folder. If it doesn't then an exception is raised
    from the secondary application saying that it cannot find certain
    assemblies. How can i solve this?

    Regards,

    Alan


  • David Levine

    #2
    Re: Application Domains...

    One way is to create a 2nd appdomain, set the appbase to the directory of
    the executable you are controlling, and start that executable from within
    the context of the 2nd appdomain.

    "Alan Seunarayan" <soonaz@ntlworl d.com> wrote in message
    news:%237hG$JSP EHA.3016@tk2msf tngp13.phx.gbl. ..[color=blue]
    > Hello all,
    > I am developing a .NET application that controls an existing .NET exe.
    > The problem is that for my application to run the secondary application it
    > has to reside in the same folder. If it doesn't then an exception is[/color]
    raised[color=blue]
    > from the secondary application saying that it cannot find certain
    > assemblies. How can i solve this?
    >
    > Regards,
    >
    > Alan
    >
    >[/color]


    Comment

    Working...