Wednesday, July 16, 2008

Castle Windsor RC3 Woes Continued...

 

Now, I'm asking WindsorContainer to pickup from the default configuration file as it supposed to:

   45         public static IDbCreator GetDBCreator()
   46         {
   47             WindsorContainer container = new WindsorContainer(); //WindsorConfigFile);
   48             IDbCreator creator = container.Resolve<IDbCreator>(UserPreferences.Instance.LocalDataStoreChosen);
   49             return creator;
   50         }
 
With this result:
 
CastleWindsor-2 
 
Of course, AppDomain.CurrentDomain.SetupInformation.ConfigurationFile is pointing to a valid *.dll.config file and is having all keys:
 
      <component id="DbTypeSql"
            service="ThinkFarAhead.WordReporter.Data.IDbCreator"
            type="ThinkFarAhead.WordReporter.Data.SqlDbCreator, ThinkFarAhead.WordReporter.Data">
      </component>

No comments: