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
Use the Path class instead of trying to reinvent the wheel and calculating the substring indexes manually.
Path