title: get app startup path in wcf
body: <p>In vs2008 (C#):</p>
  
  <p>I have :</p>
  
  <ol>
  <li>a main project (windows app)</li>
  <li>WCF Library </li>
  <li>WCF Host</li>
  <li>WCF Client (Windows app)</li>
  </ol>
  
  <p>For testing my service with created client, I call my client form in my main proj and after getting the input requirement of service by this form, I start making response of service by calling my service contract method .</p>
  
  <p>In this service I need to create a proper connection string with received parameter for request and I need my application startup path (<code>D:\myProj.dll</code>) to get access to an exe file. Unfortunately after using different kinds of codes that return this path, exactly at point of calling my service, I get another paths I don't need (<code>myproj</code>, <code>bin\debug</code> or <code>c:\programfiles\visual studio9\common7\IDE</code>) </p>
  
  <p>Can you help me ?</p>
  
  <p>For additional info I have to say that I added this path by a command to post-build event of my service library and client.</p>
  
  <p>Please help me to get access to this path (startup path of my project -> <code>D:\myProj.dll</code>) </p>
  
  <p>Thank you in advance</p>