Retrieving the web service's current folder location on a server?

  • Thread starter Thread starter Jon Pope
  • Start date Start date
J

Jon Pope

Is there an equivalent of the StartupPath() method call that works with
ASP.NET? What I'm after is the absolute path in which a website's DLL
resides (ie "C:\inetpub\wwwroot\<website>\bin").

Cheers, Jon
 
Hello Jon,

You could use reflection: Assembly.GetExecutingAssembly().CodeBase or .Location
 
Back
Top