From which ASP.NET application directory was a DLL called from?

G

Guest

I need to determine which ASP.NET web site directory a DLL was called from.
The directory path is needed so that a config file located there can be
called by a datalayer component in the same directory, that will be called by
the web site.

(A DLL called from an ASP.NET website is started not in that installation
directory but in C:\Windows\System for Windows 2000 and XP. For Windows 2003
Server, the location is C:\Windows\System\InetSrv and for running within
Visual Studio 2005, from within one of its directories.)
 
G

Guest

This answera a problem that has troubled me for some time. Whilst the
results are not quite consistant (for example Win Forms, Dos Apps and Windows
Service give the actual location of the bin directory where as Web Form and
Web Service give the web site sirectory not the location of the bin file),
the location is an actual one not a location within cache.

Thank you!
 

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,994
Messages
2,570,222
Members
46,809
Latest member
moe77

Latest Threads

Top