Hi
I have 3 layers:
WEB APP
BLL
DAL
I have the error log system path stored in web.config
I now want to use this app key in the BLL and DLL logic layers to write to log files when an error occurs
i.e. on catching exeption:
myNS.ErrorLog.clsError.RegisterErrorInLogFile(System.Configuration.ConfigurationManager.AppSettings["ErrorPath"].ToString(), "DAL_MyAccount.cs", "UpdateScheduledReportData()", ex.Message);
Open in new window
however, it error on
System.Configuration.Confi
gurationMa
nager.AppS
ettings["E
rrorPath"]
as its in a different project
any ideas what code i need?