Just for context, I have a small web project with one Model and View. I want to add that to my main project by dropping the DLL in the bin folder.
In the main project, I'm adding assemblies using a PreApplicationStartMethod
foreach (assembly in assemblyList)
Then in Global.asax.cs, I try to insert the engines like so
var engine = new PrecompiledMvcEngine(assembly);
engine.UsePhysicalViewsIfNewer = true;
// StartPage lookups are done by WebPages.
I keep getting Entry Point Not Found when I load my website. DLLs don't have entry points, right?
[EntryPointNotFoundException: Entry point was not found.]
System.Web.WebPages.IVirtualPathFactory.Exists(String virtualPath) +0
I searched for similar issues, some suggested checking the web.config of both projects. Nothing worked. Any help would be appreciated.