httpcontext.current.server.mappath Object reference not set to an instance of an object.
<p>I am using the code within a class <code>string filePath = HttpContext.Current.Server.MapPath("~/email/teste.html");</code>
The file teste.html is in the folder</p>

<p>But when it will open the file is being generated the following error:</p>

<blockquote>
  <p>Object reference not set to an instance of an object.</p>
</blockquote>

<p>Any idea?!</p>

<p>p.s. Sorry my bad english!</p>
