Step1:-
Copy these two methods into code file and access the those methods in your
project where you want
public void
ExceptionHandler(string ExceptionMessage)
{
try
{
// string root =
Directory.GetCurrentDirectory()...