conversion of 1.1 vs2003 project to vs2008 project leaves .ascx and .ascx.vb disassociated

Last post 06-01-2009 4:11 AM by Nowall. 1 replies.

Sort Posts:

  • conversion of 1.1 vs2003 project to vs2008 project leaves .ascx and .ascx.vb disassociated

    05-27-2009, 8:21 AM
    • Member
      585 point Member
    • sconard
    • Member since 12-02-2003, 2:31 PM
    • Posts 136

    I need to convert a legacy vs2003 project to at least 2.0 vs2008 to add rdlc reports.  The log shows the conversion performed by vs2008 as successful.  The legacy .ascx controls are left so that if you add say a new textbox to the .ascx, the associated .ascx.vb does not recognize the new textbox control.  Further, what was a web application is no longer a "web application" and does not offer a "web" tab in the project properties.  Is this easily fixed?  If so how?

    Answer:
    Create new web application with desired name.
    Add all references and delete any useless files generated by vs new project creation.
    Remove root namespace in project properties.
    Compile
    Drag and drop all project files from 2003 project.
    Right click and select "convert to web application"
    VS should add designer file to all ascx/aspx controls.
    If it does not, something went wrong.
    Compile
    Conversion should be complete

     

    Filed under:
  • Re: conversion of 1.1 vs2003 project to vs2008 project leaves .ascx and .ascx.vb disassociated

    06-01-2009, 4:11 AM
    Answer
    • Participant
      834 point Participant
    • Nowall
    • Member since 12-19-2007, 9:53 AM
    • Posts 108

     See http://webproject.scottgu.com/CSharp/Migration/Migration.aspx

    Please make the reply as answer if it helps!
Page 1 of 1 (2 items)