I found the quick start project. Thanks. The msdn tutorial seems to be a bit un-synched with the quick start samples.
I have another problem here. I have a WCF service and it calls the DAL layer (userDAO) to retrieve data.
Here is the code in the wcf service constructor to create a userDAO instance.
IUnityContainer container =
UnityConfigurationSection section = (UnityConfigurationSection)ConfigurationManager.GetSection("unity");
userDAO = container.Resolve<UserDAO>();
The constructor for UserDAO is
dataContext = new DataContext();
this.exceptionManager = exceptionManager;
Following is the error I got when calling container.Resolve:
Resolution of the dependency failed, type = "Database.DAO.UserDAO", name = "". Exception message is: The current build operation (build key Build Key[Database.DAO.UserDAO, null]) failed: The parameter exceptionManager could not be resolved
when attempting to call constructor Database.DAO.UserDAO(Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.ExceptionManager exceptionManager). (Strategy type BuildPlanStrategy, index 3)
I am not sure with ExceptionManager is not automatically generated this time as in the sample?