Mark,
>If I do this with the second Application, it is as if this code isn't executed at all. Where can I ,earlier in the process, detect if this code is executed so I can find out why it isn't?
This *is* the starting point. When your Web application first starts up, the Application_Start event is raised. I haven't seen this before so I suspect it has to do with the unconventional way you created the second application.
Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com