I am trying to pull the project name using the reflection, but during the substring method it give me \"index out of bound error\".
string s = System.Reflec
Try:
System.IO.Path.GetFileName(System.Reflection.Assembly.GetExecutingAssembly().Location)