Let's say I have an Asp.net WebForms application that has:
- few *.aspx files in root folder that run as WebForms application (no routing involved)
- a subfolder ie FormsFolder that has other files and subfolders in it that run as a regular web forms application
- a subfolder MvcFolder that has a normal structure of an Asp.net MVC application and runs it's content as one as well
- Routes are registered using an
HttpModule
instead inglobal.asax
- Both parts of this application (or both apps if you prefer) must run under the same IIS application (so in there are two apps, only virtual directory can be used)
Here are some questions:
- Is this scenario at all possible?
- Is it possible to attach an MVC application to a WebForms app without any code change of the later? Configuration can be changed but should be avoided as much as possible if subfolder configuration can be used.
- Is it possible to configure
UrlRoutingModule
to run only when requests are made for a particular subfolder but is not configured in other parts of the app?