title: Error: The name server does not exist in current context
body: <p>I am using windows application to send mail with the attachment. But at this line of code I get error as</p>
  
  <blockquote>
    <p>The name 'server' does not exist in current context</p>
  </blockquote>
  
  <pre><code>var directory = Server.MapPath("Attachment/");
  </code></pre>
  
  <p>I tried from <a href="https://stackoverflow.com/questions/33122119/server-mappath-does-not-exist-in-the-current-context">here</a> but it was not working for me</p>