0

Currently we encounter a concern to deploy this application with children applications on IIS. We would like each module is deployed as a virtual directory of the master application and not application in IIS. But now when trying to access the various applications areas child , he always spring a 404 error . What would be the proper way to operate its different module from virtual directories of the master application ?

We use VS2013 / Framework 4.5 / IIS 7.5.

Thank you in advance for your assistance.

Mike.F
  • 3
  • 1

1 Answers1

0

There is a big difference between an Application and a virtual directory: What's the difference between Web App and Virtual Folder in the context of IIS 7.x?

Check in IIS if your virtual directory is an Application, and change according to your wishes

Community
  • 1
  • 1
Erik Oppedijk
  • 3,496
  • 4
  • 31
  • 42
  • Thank you for your answer. I don't want my child projects are applications because they are parts of the parent application. That is why I want to use only virtual directories. But I can not access the pages of these children applications. ( error 404 ) – Mike.F Jan 12 '16 at 13:09
  • For IIS/ASP.NET there is no difference between a folder and a virtual directory. For Applications there is a big difference, is the application removed from the virtual directory? – Erik Oppedijk Jan 12 '16 at 13:13
  • Yes , the virtual directory points directly to the physical directory of the child project . There is no application in this virtual directory – Mike.F Jan 12 '16 at 13:19
  • 1
    There is no application in this virtual directory <-- This is your problem. A "child project" must be configured as an application. Otherwise it must be part of the original project (compiled into the same DLL). But frankly, unless it is absolutely necessary, it is much simpler just to put everything into a single project. – NightOwl888 Jan 12 '16 at 13:28
  • And a "child" application doesn't exist in IIS/ASP.NET. Every application has it's own settings/memory/app pool. An Application can live in a subfolder of another application, but there is no link between them – Erik Oppedijk Jan 12 '16 at 13:32
  • Ok, thank you for that. I will continue to use a single project for the entire application . – Mike.F Jan 12 '16 at 14:00