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:
http://localhost/myapp/a2.htm
Both in executable and the user control I'm checking the AppBase by
reading this property: System.AppDomain.CurrentDomain.BaseDirectory
The problem is that the executable reports the AppBase as:
http://localhost/myapp/
, while the user control reports it as:
http://localhost/
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.