Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3724776
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T06:45:49+00:00 2026-05-19T06:45:49+00:00

On my local development server, I am running version 2.0.50727.4955 on the live server

  • 0

On my local development server, I am running version 2.0.50727.4955 on the live server I am running 2.0.50727.42.

On my live server I get:

Compiler Error Message: CS0117: ‘System.Web.UI.HtmlControls.HtmlForm’ does not contain a definition for ‘Action’

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?

Thanks

EDIT (Code):

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

        litBasePath.Text = "<base href=\"" + url + "\">";
        Page.Form.Attributes["Action"] = raw;
    }

EDIT (Local Setup)

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

alt text

alt text

alt text

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T06:45:51+00:00Added an answer on May 19, 2026 at 6:45 am

    HtmlForm.Action does not exist in the unpatched 2.0 framework. Only in 2.0 sp2+. My guess is that your local environment you’re building as a 3.5 app and using libraries that do not exist in your live environment.

    In order set/change Action, I believe you need to use Page.Form.Attributes["action"] = "Some URL Here"

    Or, if it’s possible, patch your server (recommended) or install the .NET 3.5 Framework. in your live environment.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Testing on local Web Development Server and running the application in shared hosting environment
Our setup as follows: We have a local development server running Ubuntu, with a
I have a .NET 1.1 Web Application running on a local development machine and
I'm trying to get AppFabric cache up and running on my local development environment.
I want to copy a live production database into my local development database. Is
What are the pro/cons of doing web development on your local machine rather than
Let's take a web development environment, where developers checkout a project onto their local
I currently use my local web server to allow costumers to preview some applications
When running my web app on my local machine i can ref css/scripts/images using:
There are a few questions about configuring Apache for local development, such as this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.