HttpContext.Current.Server.HtmlEncode return Object reference not set to an instance of an object
<pre><code>string htmlEncode = HttpContext.Current.Server.HtmlEncode(value);

return Object reference not set to an instance of an object.
</code></pre>

<p>Value is number or string. I use this in console app. Why i can't use HttpContext.Current.Server.HtmlEncode?</p>
