AppBase and application directory

M

Marian Veteanu

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top