This facility depends on the 2.5.3 or 2.5.4 release of Windsor.
Hackathon for me this Saturday, hope to get some work done for this
new Windsor version then...
So: install specifically the Windsor 2.5.4 package and it'll work
----- Orginal Meddelande -----
Från: "Hedgehog"
Till:"Castle Project Users"
Cc:
Skickat:Thu, 20 Oct 2011 00:37:19 -0700 (PDT)
Ämne:Strange Castle AddFacility runtime error
I'am new to Castle and Castle.Windsor, so this is maybe a noob
question. I created an empty console .NET 4.0 application and added
next packages through NuGet:
Castle Windsor factory support facility 3.0 beta 1 (3.0.2001)
Castle Windsor 3.0 beta 1 (3.0.2001)
Castle Core 3.0 beta 1 (3.0.2001)
Castle NHibernate facility (0.5.1.4000)
Fluent NHibernate (1.3.0.717)
NHibernate (3.2.0.4000)
Iesi Collections (3.2.0.4000)
and wrote next code:
static void Main(string[] args)
{
IWindsorContainer container = new WindsorContainer();
container.AddFacility();
//container.AddFacility();
}
But I got an error:
GenericArguments[0], 'TService', on
'Castle.MicroKernel.Registration.RegistrationGroup`1[S]' violates
the
constraint of type parameter 'S'.
When I rewrote code and uncommented second AddFacility line:
static void Main(string[] args)
{
IWindsorContainer container = new WindsorContainer();
//container.AddFacility();
container.AddFacility();
}
I got next error:
Could not load type
'Castle.Facilities.FactorySupport.FactorySupportFacility' from
assembly 'Castle.Windsor, Version=3.0.00, Culture=neutral,
PublicKeyToken=407dd0808d44fbdc'.
I tried add
container.AddFacility();
line before first AddFacility but it not solve a problem.
In real application I got another error for same try and same
libraries:
Could not load file or assembly 'Castle.Windsor, Version=2.5.1.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)
with next FusionLog:
=== Pre-bind state information ===
LOG: DisplayName = Castle.Windsor, Version=2.5.1.0, Culture=neutral,
PublicKeyToken=407dd0808d44fbdc
(Fully-specified)
LOG: Appbase = file:///xxx.Test/bin/Debug
LOG: Initial PrivatePath = NULL
Calling assembly : Castle.Facilities.AutoTx [1],
Version=3.0.202.2202,
Culture=neutral, PublicKeyToken=407dd0808d44fbdc.
LOG: This bind starts in default load context.
LOG: Using application configuration file: xxx.TestbinDebug
xxx.Test.dll.config
LOG: Using host configuration file:
LOG: Using machine configuration file from C:WindowsMicrosoft.NET
Framework64v4.0.30319configmachine.config.
LOG: Post-policy reference: Castle.Windsor, Version=2.5.1.0,
Culture=neutral, PublicKeyToken=407dd0808d44fbdc
LOG: Attempting download of new URL
file:///xxx.Test/bin/Debug/Castle.Windsor.DLL.
WRN: Comparing the assembly name resulted in the mismatch: Major
Version
ERR: Failed to complete setup of assembly (hr = 0x80131040). Probing
terminated.
I don't understand what I doing wrong.
--
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]. [2]
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 [3].
Links:
------
[1] http://Castle.Facilities.AutoTx
[2] mailto:[email protected].
[3] http://groups.google.com/group/castle-project-users?hl=en
--
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.