C
cashdeskmac
Hi,
I have a web site with a class (HelperMethods) in the App_Code folder. When
any exceptions are caught in a catch block I want a method in the
HelperMethods class to log the error and then throw the exception so that the
<customErrors> element in the web.config can take the user to the appropriate
page.
The problem arises when I am trying to get the root path of the folder so
that I can log the errors in an XML file called ErrorLog in the Logs folder.
Is there a way to specify the root web folder from a non-web class?
I have a web site with a class (HelperMethods) in the App_Code folder. When
any exceptions are caught in a catch block I want a method in the
HelperMethods class to log the error and then throw the exception so that the
<customErrors> element in the web.config can take the user to the appropriate
page.
The problem arises when I am trying to get the root path of the folder so
that I can log the errors in an XML file called ErrorLog in the Logs folder.
Is there a way to specify the root web folder from a non-web class?