Middle-tier equivalent to server.mappath?

  • Thread starter Thread starter Craig Buchanan
  • Start date Start date
C

Craig Buchanan

I would like to use xml files as the datasource for a few vb.net classes
that sit in the business tier. It would make sense to located this files in
a subdirectory relative to the location of the DLLs. Is there a way to do
this?

Thanks,

Craig Buchanan
 
To get the directory of currently executing application

Dim strPath As Strin
strPath = System.AppDomain.CurrentDomain.BaseDirector

Joe Agster
 
when I do this like this I always use the

httpcontext.current class

that way it ensures the method execute in the same thread as the web
application.

i think you have to do this while using request/response/trace objects

HTH

martin.
 
Back
Top