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 6049583
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T07:35:35+00:00 2026-05-23T07:35:35+00:00

We’re setting up a new build server with CruiseControl.Net and MSBuild. After quite a

  • 0

We’re setting up a new build server with CruiseControl.Net and MSBuild. After quite a bit of work, it’s mostly working, except for one issue with one project (out of seven) that refuses to build under MSBuild. Here’s the error:

error CS1061: ‘System.Web.UI.HtmlControls.HtmlForm’ does not contain a definition for ‘Action’ and no extension method ‘Action’ accepting a first argument of type ‘System.Web.UI.HtmlControls.HtmlForm’ could be found (are you missing a using directive or an assembly reference?)

All the code is still compiling fine on the old build server, and the new build server, while not an exact match, is configured similarly to the old.

The only cause that I can come up with for this error is that the System.Web.dll that’s being used for compilation is v1.1, not v2.0, since the Action method was not in the v1.1 framework.

I’m not sure why this error, which we never saw on the old build server, is coming up on the new server. I’m not even sure exactly how to drill down to find the possible cause. I have tried running MSBuild with the /toolsversion:3.5 parameter set. I’ve run with the verbosity level set to the highest level, then compared the output to the old build server, but there wasn’t anything that pointed to a cause (at least, nothing that was obvious to me).

There are several projects that are built before this one, and none of them are failing, even though they all are using more recent versions of the framework (3.5). This is the only project referencing System.Web.HtmlControls.

Has anyone had any similar issues? Can anyone offer any help/hints on how best to try and get to the bottom of MSBuild issues?

Update
The .sln and .csproj files are the same between the two servers. One thing I noticed in the .csproj file was the System.Web reference had no framework requirements:

<Reference Include="System.Web" />

I’m going to try adding a <RequiredTargetFramework> to this reference to see if that makes a difference.

Update 2
Updating the reference in the csproj file to the following:
<Reference Include="System.Web">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>

Did not seem to work. Next step, download the SDK so I can use ILDASM on System.Web to see if maybe something is wrong with my framework install (specifically, does the system.web.dll in my v2.0 framework have that method).

Update 3
The problem seems to be with the system.web.dll in the v2.0.5072 framework folder. It does not have the Action method on the HtmlForm class. I have no idea how something like that can happen, but I’m going to have to straighten out the frameworks on this server.

  • 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-23T07:35:36+00:00Added an answer on May 23, 2026 at 7:35 am

    It’s not MSBuild … it’s the 2.0 framework on the newer machine. The system.web.dll is just slightly different on the two machines:

    Current machine: System.Web.dll version = 2.0.50727.3618
    New machine: System.Web.dll version = 2.0.50727.1433

    I think maybe someone here missed a SP on the newer machine. I’m surprised that there would be any kind of significant difference in the classes between these build numbers, though.

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

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
For some reason, after submitting a string like this Jack’s Spindle from a text
I want use html5's new tag to play a wav file (currently only supported
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.
I would like my Web page http://www.gmarks.org/math_in_e-mail.txt on my Apache 2.2.14 server to display
I have a reasonable size flat file database of text documents mostly saved in
I'm working with an upstream system that sometimes sends me text destined for HTML/XML
Let's say I'm outputting a post title and in our database, it's Hello Y&#8217;all

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.