Results 1 to 10 of 10

Thread: [RESOLVED] Newbie Question re: VB.Net

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2005
    Posts
    80

    Resolved [RESOLVED] Newbie Question re: VB.Net

    I'm currently running VB.Net Standard Edition (2002 I believe?), and when I try to open a project/solution, I get the following error -

    Unable to read the project file "xxxxx.vbproj". The project
    "xxxxx.vbproj" was created with a newer version of Visual Studio
    which in incompatible with your version. You can only open this project
    with newer versions of Visual Studio.


    Could this be because the file I'm trying to open was created by VB.Net 2003? If so, are there any ways to fix this problem without having to purchase the 2003 version?

    Thanks in advance.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Newbie Question re: VB.Net

    I believe you can edit the solution and project files manually. They are plain text files so they can be opened and edited in Notepad. That may be a little risky if you aren't sure what you're doing though. The alternative would be to create a new project and use "Add Existing Item" to import the files from the old project. Be aware that if the project was created with .NET 1.1 specific features then it will not run on version 1.0 of the Framework, which VS.NET 2002 targets.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3
    Hyperactive Member nothingofvalue's Avatar
    Join Date
    Jul 2005
    Location
    Arizona
    Posts
    489

    Re: Newbie Question re: VB.Net

    Check out this link, supposedly this little app will convert 2002 to 2003 or 2003 to 2002, you have to "sign up" first to download the app.
    Link
    "Imagination is more important than knowledge..."

    Albert Einstein
    -----------------------------------------------
    If my reply helped you then you really were lost, but I still took the time to help, please rate it anyway

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Sep 2005
    Posts
    80

    Unhappy Re: Newbie Question re: VB.Net

    The Add Existing Item method works - thanks!

    Now comes my second question... I created a new project, add existing item (the proj I was having problems opening in VB.Net 2002), and when I try to run the program, it keeps running the blank project I started rather than the project I added as existing item. What am I doing wrong?

    Thanks again.

  5. #5
    Hyperactive Member nothingofvalue's Avatar
    Join Date
    Jul 2005
    Location
    Arizona
    Posts
    489

    Re: Newbie Question re: VB.Net

    Probably need to change which form is the start up form. Do this by right clicking on your project (not the solution) in the solution explorer and selecting properties, then change the startup object to the proper form.
    "Imagination is more important than knowledge..."

    Albert Einstein
    -----------------------------------------------
    If my reply helped you then you really were lost, but I still took the time to help, please rate it anyway

  6. #6
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Newbie Question re: VB.Net

    So you've created a new project and used Add Existing Item to import each individual code file from the old project to that new project, not the solution? Once you've done that, you would have to delete the Form1 class file that would have been created by default and then specify a new startup object, that being the main form or module or whatever of the old project.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  7. #7

    Thread Starter
    Lively Member
    Join Date
    Sep 2005
    Posts
    80

    Re: Newbie Question re: VB.Net

    Wow, thanks for the quick help everyone! That worked!!!

  8. #8

    Thread Starter
    Lively Member
    Join Date
    Sep 2005
    Posts
    80

    Re: Newbie Question re: VB.Net

    Quote Originally Posted by jmcilhinney
    So you've created a new project and used Add Existing Item to import each individual code file from the old project to that new project, not the solution? Once you've done that, you would have to delete the Form1 class file that would have been created by default and then specify a new startup object, that being the main form or module or whatever of the old project.

    Thanks jmcilhinney, I just tried what nothingofvalue suggested and it worked! Thanks for your prompt assistance

  9. #9
    Hyperactive Member nothingofvalue's Avatar
    Join Date
    Jul 2005
    Location
    Arizona
    Posts
    489

    Re: [RESOLVED] Newbie Question re: VB.Net

    You should still get rid of any form that is not being used as it is worthless and will only take up space. Also, please mark your post as resolved at the top of the page under the "Thread Tools"

    Good Luck
    "Imagination is more important than knowledge..."

    Albert Einstein
    -----------------------------------------------
    If my reply helped you then you really were lost, but I still took the time to help, please rate it anyway

  10. #10
    Hyperactive Member nothingofvalue's Avatar
    Join Date
    Jul 2005
    Location
    Arizona
    Posts
    489

    Re: [RESOLVED] Newbie Question re: VB.Net

    Nevermind...you did
    "Imagination is more important than knowledge..."

    Albert Einstein
    -----------------------------------------------
    If my reply helped you then you really were lost, but I still took the time to help, please rate it anyway

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width