Results 1 to 5 of 5

Thread: MVC project - references not working??

  1. #1

    Thread Starter
    PowerPoster i00's Avatar
    Join Date
    Mar 2002
    Location
    1/2 way accross the galaxy.. and then some
    Posts
    2,390

    MVC project - references not working??

    Hi,
    I had an MVC project that I did a while ago (orig in VS 2015); and now went to use it on a new computer I am using (2022) and the references all look like they are working; but the code isn't recognizing them at all.

    In the screenshot is my references on the right, and intellisense of system.web. for example... and it is like 95%+ of things referenced are not!

    Name:  ss.jpg
Views: 7366
Size:  31.2 KB

    Don't really know where to start, any help would be great.

    Thanks in advance,
    Kris

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

    Re: MVC project - references not working??

    For the record, everything in your screenshot besides the code itself is too small to read.

    What framework are you targeting? Have you changed that since opening the project in VS 2022?
    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
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,840

    Re: MVC project - references not working??

    What happens if you go to the References page of the project properties and remove a reference and then re-add it?
    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

  4. #4
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,680

    Re: MVC project - references not working??

    Judging by the objects wit red squigglies in what I can read... and given that it was originally written in 2015... The framework that it's targeting isn't installed.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  5. #5
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Location
    South Louisiana
    Posts
    11,997

    Re: MVC project - references not working??

    Moved to MVC forum.
    "Code is like humor. When you have to explain it, it is bad." - Cory House
    VbLessons | Code Tags | Sword of Fury - Jameram

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