Error while converting VS 2003 project to VS 2005

Last post 10-12-2009 11:48 PM by suhelman. 6 replies.

Sort Posts:

  • Error while converting VS 2003 project to VS 2005

    12-17-2008, 6:27 AM
    • Member
      6 point Member
    • chainv
    • Member since 12-07-2007, 10:05 AM
    • Posts 41

    Hi  All,

    I have converted visual studio 2003 project to visual studio 2005 but m getting error as :

    "Attribute 'CodeBehindFile' in the @ Page directive is no longer supported. Convert this page to the new code-behind model by opening the Web site (project) containing the page in Visual Web Developer. "

    As 2005 does not support CodeBehindFile i changed it to Codefile, still it is giving the same error.. M stuck here please let me know how to resolve this.

    Thanks in Advance, 

    Chainv

     

  • Re: Error while converting VS 2003 project to VS 2005

    12-21-2008, 10:27 PM

    Hi,

    What version of Visual Studio 2005 are you using? It seems that it is Beta version which has such issue when we convert ASP.NET 1.x to ASP.NET 2.0.

    In the Visual Studio 2005 RTM, this issue should be resolved. For more information, you can refer to http://forums.asp.net/t/931582.aspx

    You also can refer to Common Web Project Conversion Issues and Solutions (http://msdn.microsoft.com/en-us/library/aa479312.aspx).

     

    I look forward to hearing from you.

    Thomas Sun
    Microsoft Online Community Support

    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question.
  • Re: Error while converting VS 2003 project to VS 2005

    12-22-2008, 2:11 AM
    • Member
      6 point Member
    • chainv
    • Member since 12-07-2007, 10:05 AM
    • Posts 41
    Thanks for Reply.... I am not using the Beta version of VS 2005.. We are using the licensed VS 2005..Now along  with the codebehind file error m also getting below mentioned error.1) Could not load file or assembly 'CrystalDecisions.Web, Version=11.0.3300.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.            C:\IB\WebUI\Reports\productivityrpt.aspx                   2)'TreeView' is an ambiguous reference between'System.Web.UI.WebControls.TreeView' and'Microsoft.Web.UI.WebControls.TreeView'C:\IB\WebUI\Reports\NumberOfOutlays_Sent_Conversion_Pending.aspx.cs         In 2003  we dont have inbuilt treeview so in 2005 it is giving error.. i tried to change treeview refference..but again it is giving error in other parts of the code... I searched the technique for this migration... everywhr they have given the same steps to fallow(Using the convertion wizard)...Still m getting these many errors.. If u have more information please let me know.Thanks,Chainv

     

  • Re: Error while converting VS 2003 project to VS 2005

    12-22-2008, 4:08 AM

    Hi,

    Thanks for your response.

    For error "Could not load file or assembly...", we can try to re-add reference to this assembly in Visual Studio 2005.

    For the second error, there is the same type in two assembles: "System.Web.UI.WebControls.TreeView" and "Microsoft.Web.UI.WebControls.TreeView". ASP.NET 2.0 uses former one, you can remove  "Microsoft.Web.UI.WebControls.TreeView" from your website.

    You also can create new ASP.NET 2.0 project, and then add the contents to this new one from the converted one, and then add reference for it.

     

    Thanks.

     

    Thomas Sun
    Microsoft Online Community Support

    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question.
  • Re: Error while converting VS 2003 project to VS 2005

    12-22-2008, 5:05 AM
    • Member
      6 point Member
    • chainv
    • Member since 12-07-2007, 10:05 AM
    • Posts 41

    Hi,

    Thanks for response. i have removed Microsoft.Web.UI.WebControls.TreeView from the code .

    Now m getting 258 errors:    Error 85 'System.Web.UI.WebControls.TreeNode' does not contain a definition for 'Nodes'

    I have used treeview in many pages so it is giving these many errors.

    Thanks,

    Chainv 

     

  • Re: Error while converting VS 2003 project to VS 2005

    12-22-2008, 9:08 PM
    Answer

    Hi,

    It seems that you used MicrosoftWebControls such as TreeView, which is only designed for ASP.NET 1.1.

    In ASP.NET 2.0, we can use equivalents Sytem.Web.UI.WebControls in ASP.NET 2.0 to replace them.

    For example, we can use MultiView control (http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.multiview(VS.80).aspx) to replace PageView.

     

    Thanks.

    Thomas Sun
    Microsoft Online Community Support

    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question.
  • hye guys can help me?

    10-12-2009, 11:48 PM
    • Member
      2 point Member
    • suhelman
    • Member since 10-12-2009, 11:45 PM
    • Posts 2

    how to convert project visual studio 2002 to visual basic 2003, please i need the step to do the convert... thank

Page 1 of 1 (7 items)