Hello, I'm trying to upgrade to the latest version of Winsdor but I
need to keep the old ActiveRecord version (1.0.3.0) now.
My exception is thrown here:
public ApplicationView(string[] args)
{
InitializeComponent();
string configFilePath =
Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "log4net.config");
FileInfo configFileInfo = new FileInfo(configFilePath);
XmlConfigurator.ConfigureAndWatch(configFileInfo);
IConfigurationSource configSource =
ConfigurationManager.GetSection("ActiveRecord") as
IConfigurationSource; // Throws here
Assembly assembly = Assembly.Load("Danel.Nursing.Model");
ActiveRecordStarter.Initialize(assembly,
configSource);
WindsorContainer windsorContainer =
ApplicationUtils.GetWindsorContainer();
windsorContainer.Kernel.AddComponentInstance<ApplicationView>(this);
windsorContainer.Kernel.AddComponent(typeof(ApplicationController).Name,
typeof(ApplicationController));
IDataServicesInitiator dsi = new DataServicesInitiator();
dsi.AddToIocContainer(ref windsorContainer);
controller =
windsorContainer.Resolve<ApplicationController>();
OnApplicationLoad(args);
}
{"An error occurred creating the configuration section handler for
ActiveRecord: Exception has been thrown by the target of an
invocation. (E:\\Agile\\Scheduling\\Danel.Nursing.Scheduling\\bin\
\Debug\\Danel.Nursing.Scheduling.vshost.exe.Config line 4)"}
{"Could not load file or assembly 'Castle.Core, Version=1.0.3.0,
Culture=neutral, PublicKeyToken=407dd0808d44fbdc' or one of its
dependencies. The located assembly's manifest definition does not
match the assembly reference. (Exception from HRESULT:
0x80131040)":"Castle.Core, Version=1.0.3.0, Culture=neutral,
PublicKeyToken=407dd0808d44fbdc"}
For some reason it still tries to load the old core version.
How do I make it fetch the new version?
--
You received this message because you are subscribed to the Google Groups
"Castle Project Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/castle-project-users?hl=en.