I have 2 existing websites in IIS (v10). One of these has to be assigned as an application in the other but also be retained as a site.
Site A is web forms, Site B is MVC.
I have gone through the menus and added a 'new' application to Site A, with a new virtual directory, and pointed the physical path to the file system path of Site B. I created a new app pool with the exact same conditions as the existing app pool for Site B.
When running, I get a 500 error.
I have tried using the same app pool as Site B, and again using the same app pool as Site A. In all cases, the 500 error remains.
How is the best way to do this? Is this even possible?
Thanks in advance.
Edited to Add:
Forgot to mention. I have disabled custom errors in the web.config and added:
<httpErrors existingResponse="PassThrough" errorMode="Detailed" />
The result on screen is:
"SiteA is currently unable to handle this request.
HTTP ERROR 500"
with no detailed or verbose error message.