Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. Strange Compile problem

Strange Compile problem

Scheduled Pinned Locked Moved .NET (Core and Framework)
helpcsharpjavascriptcssasp-net
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    cor2879
    wrote on last edited by
    #1

    Hey there all, I'm just throwing this out there to see if anyone might have an idea on something to try: I have recently developed a new Web User Control. This is not my first User Control, I have built many. The control itself does not seem to have issues. I and others in my office can compile and use the control just fine. Yay. However, we have an off site developer to whom I have sent the source code for the control. I did not leave anything out, any required JavaScript, CSS, all required files were sent with the control. However, when he attempts to compile his site with the control, he is getting compiler errors that would seem to indicate that he is not running the correct Framework version. For example, it will not compile with automatic properties (that is, properties that rely on the compiler to build their implementation and add the associated fields to the class), and also rejects methods that are specific to Framework 3.5 such as the Generically typed "ToArray()" method of the Generic List class that is provided as an extension through the System.Linq namespace in .Net 3.5. I asked the developer to check his target Framework for the site. It is 3.5 I asked him to check which version of System.Core his site was referencing. It is, indeed, referencing version 3.5.0.0. I made doubly sure that the code behind file for the control contains a using statement for the System.Linq namespace, it does. The developer apparently did not have SP1 for VS2008 or .Net 3.5 installed but he has since installed the Service Pack. Has anyone else run into an issue like this or have an idea for something else to try. At this point I am prepared to redevelop the control as a Web Server Control so that I can send it to him pre-compiled, but we are being pushed for a deadline so if there is some quick fix out there I'd love to try that first. Thanks for any and all suggestions.

    "We are men of action; lies do not become us."

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups