Get project name using reflection
<p>I am trying to pull the project name using the reflection, but during the substring method it give me "index out of bound error". </p>

<pre><code>string s = System.Reflection.Assembly.GetExecutingAssembly().Location;           
int idx = s.LastIndexOf(@"\");
s = s.Substring(idx, s.Length);
</code></pre>

<p>I don't understand why it is giving error on the third line. </p>

<p>Plz Help.        </p>
