MVC app in subfolder

Discussion in 'ASP.NET / ASP.NET Core' started by khudkush, Apr 5, 2010.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. I have an IIS 7 hosting account and have an ASP.NET 3.5 application up and running.
    I now need to host an MVC app in a subdirectory of the root application mentioned above.
    So i took the following steps:
    1) Created a new folder on the root of my application.
    2) Using the Web Application tool, i set this directory as an application.
    3) Uploaded a very basic MVC app to this folder, including the required MVC dlls.

    When i navigate to the subfolder using my browser, i get the following error:
    The view 'Index' or its master could not be found.

    Please help.
     
  2. Ramses

    Ramses Guest

    Is it possible to provide us with a link to the test page? I'd like to take a crack at it, but I'd need to be able to see the entire error message so I know what's going on.
     
  3. Still awaiting help on this..
     
  4. Hi,
    Did you update the controller in the project?
    Several of us can help if we have a better idea what's going on.
    All the best,
    Mark
     
  5. Have the same issue

    I have the same issue but am not yet that far. Can anyone provide a step-by-step for creating a new subfolder, making it an application and then moving an MVC application to that subfolder?

    For now I would simply like to do a very simple Hello World type app.

    One thing I do not understand is how I would share my single database with the non MVC app I currently have and the new MVC app. (I currently use my DASP site and apps as a learning testground so I can do whatever I want with the database.)

    Thanks for any assistance.
     
  6. Hi,
    Sorry to see this is causing you some stress.
    Here are some thoughts:
    1) Look in the DASP Knowledge Base for some code examples of redirecting to folders.
    2) Consider shortening or customizing urls with the ISS7 url rewriter.
    3) Create an application for your MVC app in the root folder it resides in, from your Control Panel.

    There are notes for each of these topics in the DASP KB and Blog.
    Links for those sites are on the main page. http://discountasp.net/
    All the best,
    Mark
     
  7. I am having THE VERY SAME PROBLEM!

    I created a folder (/d/), made it a web application, dumped my mvc code in it and guess what...


    404!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

    OH, it would route to d/home/ but it would not, could not, cannot find the index.aspx.

    Has anyone hosted by discountasp.net successfully put an mvc app in a subdirectory of a tried and true webforms application?
     
  8. I have an MVC application that runs for me locally that I cannot get to run when I deploy it to DASP. I get error message Could not load file or assembly 'System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies.

    You can see complete error message at http://www.millionfriendscampaign.com/bergfreunde

    I made another simple hello world like application that I deplayed in the same fashion and it works. You can see this at http://www.millionfriendscampaign.com/mvcapptest2b

    Does anyone have any idea why the one but not the other would work?

    Thanks for any assistance.
     
  9. wmgraham I see from the URL you posted that you got MVC going. Any update on what you did?
     
  10. I have teh same error

    I get this error inmy mvc app
    <add assembly="System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
    http://articlesusa.org/
    Any help
     
  11. I found my answer in KB under mvc
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page