ModuleDependency Attribute Remote Connection Lost

Topics: Mobile Client Software Factory
Sep 5, 2006 at 10:16 PM
originally posted by: david3001

Hi guys,

I'm experiencing unexpected behavior when I define dependency between two modules:
Module1 opens a database connection
Module2 retrieves this database connection

Therefor I go to AssemblyInfo.cs of Module2 and add the following line of code:
assembly: ModuleDependency("Module1")

What happens is as follows:
I get an exception ModuleLoadException:

"An unhandled exception of type 'Microsoft.Practices.Mobile.CompositeUI.Services.ModuleLoadException' occurred in Mobile.CompositeUI.dll"
"Additional information: A module declared a dependency on another module which is not declared to be loaded. Missing module(s): ECO_LOG.PocketPcApplication.Infrastructure"

This exception is thrown in Method Solve(..) of ModuleDependencySolver.cs.

If you have experienced similar behavior or have a guess or hint, please let me know!

Sep 6, 2006 at 4:58 AM
originally posted by: m_a_madero

Make sure you have Module1 y ProfileCatalog.xml