Adding MVC project to existing Web application project-VBForums
Results 1 to 5 of 5

Thread: Adding MVC project to existing Web application project

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jun 2009
    Posts
    228

    Adding MVC project to existing Web application project

    I have an MVC project and a separate Web Application project. How can I link the two together. Currently, when I try to open a page in the MVC project from the main project I get a 404 error. They have different Project urls, is this why? How can I synchronize them?

    Thanks

  2. #2
    .NUT jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    87,651

    Re: Adding MVC project to existing Web application project

    You can mix and match MVC and Web Forms but they were never intended to be used in that fashion so it's not trivial. I would recommend either reimplementing one using the other technology or else run one as a sub-site of the other under IIS.

    2007-2014

    Why is my data not saved to my database? | MSDN Data Walkthroughs
    MSDN "How Do I?" Videos: VB | C#
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts) | WP8 Turnstile Feather Transition with Pivot Control
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jun 2009
    Posts
    228

    Re: Adding MVC project to existing Web application project

    Do you know any good links that can help me to do this? I don't want to start again as it's for an assignment and I won't have time to implement everything in MVC.

  4. #4
    .NUT jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    87,651

    Re: Adding MVC project to existing Web application project

    Here's a good one:

    www.google.com

    20 seconds there and you should have all the links you need.

    2007-2014

    Why is my data not saved to my database? | MSDN Data Walkthroughs
    MSDN "How Do I?" Videos: VB | C#
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts) | WP8 Turnstile Feather Transition with Pivot Control
    Beginner Tutorials: VB | C# | SQL

  5. #5
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744

    Re: Adding MVC project to existing Web application project

    1. You can actually use MVC's routing to redirect from one project to another but this method could be problematic if you have many link types to work with.
    2. You can just merge 2 projects into 1 and eliminate this headache.

Posting Permissions

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



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.