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

  • Home
  • SEARCH
  • 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 6197285
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T03:47:40+00:00 2026-05-24T03:47:40+00:00

Not sure if anyone can help here, but we’re moving from VS 2008 to

  • 0

Not sure if anyone can help here, but we’re moving from VS 2008 to 2010 and have run into a compile issue on our website.

We converted the project which which returned 0 conversion errors.

When trying to build the website (not webapp project) an error appears in a generated .cs file in the asp.net temp folder stating local variable x is already defined. The error is right, the variable has been declared, but I can’t understand why the code generator would create 2 instances of the same control when there is only one.

#line default
#line hidden
namespace.to.control.lib controlid;

#line 9 "C:\path\control.ascx"
         controlid = ((namespace.to.control.lib (@__container.FindControl("controlid")));

The above line is duplicated and the 2nd, is what the error points to.

I have cleared out the temp files for all .net versions installed – any other suggestions?

  • 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-24T03:47:41+00:00Added an answer on May 24, 2026 at 3:47 am

    This is taken from the above note I added a while ago – I only thought it appropriate to add an ‘answer’ in the hope of helping anyone else who might come across this.

    The control being duplicated in the .net temp files was nested inside another control via an ITemplate inner property.

    [PersistenceMode(PersistenceMode.InnerProperty), TemplateContainer(typeof(MDSL.Web.UI.WebControls.FormView), BindingDirection.TwoWay), TemplateInstance(TemplateInstance.Single)]
    [Bindable(true, BindingDirection.TwoWay)]
    public ITemplate Template { get; private set; }
    

    This property was decorated with TemplateInstance.Single (loses the findcontrol pain and enables access the controls via id from the code behind).

    The duplicated control had a bind which when removed seemed to stop the errors, but since the bind was needed the property attribute was removed and code re-factored to support it.

    SelectedValue='<%# Bind("column") %>'
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am not sure if this is a unity bug but can anyone help
Ok I have looked into this, and I'm not sure if anyone else has
Can anyone help with converting data from an XML document into an associative array?
Hi not sure if this is the right forum for this but does anyone
I'm not sure how or why this happened, but if anyone could suggest a
Not sure if im just being stupid or something but here goes i work
Not sure how to ask this, but i'll give it a try: I have
not sure what I'm missing here, but i keep getting the error. SQLSTATE[HY093]: Invalid
I'm not sure if I'm doing something wrong here or not, but I need
I'm not sure if I have the correct terms above, but what I'm trying

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.