0

I have a class, EmailSendJob, that implements IJob and I need to get the path to the App_Data folder in my web project from the Execute(IJobExecutionContext context) method of the EmailSendJob class. Can anyone tell me how to do this?

Damien_The_Unbeliever
  • 227,877
  • 22
  • 326
  • 423
COBOL
  • 1,021
  • 6
  • 16
  • 32

1 Answers1

1

Probably want something like:

var appDataPath = (string)AppDomain.CurrentDomain.GetData("DataDirectory");

(should work for ASP.Net or Local Applications)

Erik Philips
  • 51,408
  • 11
  • 123
  • 146