I have a DLL which provides an entry point to an ASP.MVC application. Let's call this Primary.DLL. In Primary.DLL, there are LINQ-to-SQL data context and other classes defined. Somewhere in Application_Start()
, Assembly.Load()
is called to load Secondary.DLL. Secondary is NOT referenced in Primary.DLL's project file. But Primary is referenced in the project file of Secondary.DLL because the LINQ-to-SQL data context and other classes mentioned above are used in Secondary.
Would this create a circular dependency problem? Would there be any problem with this kind of design?