AppBase and application directory

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Marian Veteanu

    #1

    AppBase and application directory

    Hello,

    I have an IIS application called MyApp. In this application I have 3
    files:

    - an executable, accessible via: http://localhost/myapp/w01.exe
    - a dll file (a user control);
    - a htm page with an <object> tag that loads the previous user
    control. The page can be accessed with via this Url:


    Both in executable and the user control I'm checking the AppBase by
    reading this property: System.AppDomai n.CurrentDomain .BaseDirectory

    The problem is that the executable reports the AppBase as:



    , while the user control reports it as:




    What should I do in order that the user control to report the same
    AppBase as the executable file.

    Because of this issue I have problems in my code instantiating types
    defined in other assembly. The CLR cannot locate the other assembly
    because the AppBase doesn't point where is expected.
Working...