Results 1 to 5 of 5

Thread: Adding MVC project to existing Web application project

  1. #1
    Addicted Member
    Join Date
    Jun 09
    Posts
    223

    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 05
    Location
    Sydney, Australia
    Posts
    81,248

    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.

  3. #3
    Addicted Member
    Join Date
    Jun 09
    Posts
    223

    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 05
    Location
    Sydney, Australia
    Posts
    81,248

    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.

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

    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
  •