Middle-tier equivalent to server.mappath?

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
 
G

Guest

To get the directory of currently executing application

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

Joe Agster
 
M

martin

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.
 

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,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top