ASP.NET - Page.Form.Action error
<p>On my local development server, I am running version 2.0.50727.4955 on the live server I am running 2.0.50727.42.</p>

<p>On my live server I get:</p>

<p>Compiler Error Message: CS0117: 'System.Web.UI.HtmlControls.HtmlForm' does not contain a definition for 'Action'</p>

<p>On my development server everything works fine. Is this a .NET version issue or something else? Is there a way to make this work on my liver server with its current .Net version? Is there a way to upgrade from 2.0.50727.42 to 2.0.50727.4955?</p>

<p>Thanks</p>

<p>EDIT (Code):</p>

<pre><code>    if (Request.PathInfo.Length != 0)
    {
        string reqPath = Request.PathInfo;
        string raw = Request.RawUrl;
        string url = Request.Url.ToString();
        if (reqPath.Length &gt; 0)
            url = url.Replace(reqPath, "");
        if (raw.Length &gt; 0)
            url = url.Replace(raw, "");

        litBasePath.Text = "&lt;base href=\"" + url + "\"&gt;";
        Page.Form.Attributes["Action"] = raw;
    }
</code></pre>

<p>EDIT (Local Setup)</p>

<p>This is my local setup. I am not getting any compile errors when i run this locally.</p>

<p><img src="http://i.stack.imgur.com/oexCK.png" alt="alt text"></p>

<p><img src="http://i.stack.imgur.com/u9hSi.png" alt="alt text"></p>

<p><img src="http://i.stack.imgur.com/HLhrq.png" alt="alt text"></p>
